class Google::Apis::MonitoringV3::GkeService
GKE Service
. The “service” here represents a Kubernetes service object (https:/ /kubernetes.io/docs/concepts/services-networking/service). The field names correspond to the resource labels on k8s_service monitored resources (https:// cloud.google.com/monitoring/api/resources#tag_k8s_service).
Attributes
The name of the parent cluster. Corresponds to the JSON property `clusterName` @return [String]
The location of the parent cluster. This may be a zone or region. Corresponds to the JSON property `location` @return [String]
The name of the parent namespace. Corresponds to the JSON property `namespaceName` @return [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. Corresponds to the JSON property `projectId` @return [String]
The name of this service. Corresponds to the JSON property `serviceName` @return [String]
Public Class Methods
# File lib/google/apis/monitoring_v3/classes.rb, line 1520 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/monitoring_v3/classes.rb, line 1525 def update!(**args) @cluster_name = args[:cluster_name] if args.key?(:cluster_name) @location = args[:location] if args.key?(:location) @namespace_name = args[:namespace_name] if args.key?(:namespace_name) @project_id = args[:project_id] if args.key?(:project_id) @service_name = args[:service_name] if args.key?(:service_name) end