value (::String) — The name of the parent cluster.
Returns
(::String) — The name of the parent cluster.
#location
deflocation()->::String
Returns
(::String) — The location of the parent cluster. This may be a zone or region.
#location=
deflocation=(value)->::String
Parameter
value (::String) — The location of the parent cluster. This may be a zone or region.
Returns
(::String) — The location of the parent cluster. This may be a zone or region.
#namespace_name
defnamespace_name()->::String
Returns
(::String) — The name of the parent namespace.
#namespace_name=
defnamespace_name=(value)->::String
Parameter
value (::String) — The name of the parent namespace.
Returns
(::String) — The name of the parent namespace.
#project_id
defproject_id()->::String
Returns
(::String) — Output only. The project this resource lives in. For legacy services
migrated from the Custom type, this may be a distinct project from the
one parenting the service itself.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Monitoring V3 API - Class Google::Cloud::Monitoring::V3::Service::GkeService (v1.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.1 (latest)](/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [1.6.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.6.0/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [1.5.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.5.1/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [1.4.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.4.0/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [1.3.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.3.0/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [1.2.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.2.0/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [1.1.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.1.0/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [1.0.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.0.1/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [0.18.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.18.0/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [0.17.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.17.0/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [0.16.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.16.0/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [0.15.2](/ruby/docs/reference/google-cloud-monitoring-v3/0.15.2/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [0.14.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.14.0/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [0.13.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.13.0/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [0.12.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.12.1/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [0.11.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.11.0/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [0.10.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.10.0/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [0.9.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.9.0/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [0.8.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.8.0/Google-Cloud-Monitoring-V3-Service-GkeService)\n- [0.7.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.7.1/Google-Cloud-Monitoring-V3-Service-GkeService) \nReference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::Service::GkeService.\n\nGKE Service. The \"service\" here represents a\n[Kubernetes service\nobject](https://kubernetes.io/docs/concepts/services-networking/service).\nThe field names correspond to the resource labels on [`k8s_service`\nmonitored\nresources](https://cloud.google.com/monitoring/api/resources#tag_k8s_service). \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #cluster_name\n\n def cluster_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The name of the parent cluster.\n\n### #cluster_name=\n\n def cluster_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The name of the parent cluster. \n**Returns**\n\n- (::String) --- The name of the parent cluster.\n\n### #location\n\n def location() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The location of the parent cluster. This may be a zone or region.\n\n### #location=\n\n def location=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The location of the parent cluster. This may be a zone or region. \n**Returns**\n\n- (::String) --- The location of the parent cluster. This may be a zone or region.\n\n### #namespace_name\n\n def namespace_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The name of the parent namespace.\n\n### #namespace_name=\n\n def namespace_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The name of the parent namespace. \n**Returns**\n\n- (::String) --- The name of the parent namespace.\n\n### #project_id\n\n def project_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. The project this resource lives in. For legacy services migrated from the `Custom` type, this may be a distinct project from the one parenting the service itself.\n\n### #service_name\n\n def service_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The name of this service.\n\n### #service_name=\n\n def service_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The name of this service. \n**Returns**\n\n- (::String) --- The name of this service."]]