class Google::Apis::MonitoringV3::GkeWorkload

A GKE Workload (Deployment, StatefulSet, etc). The field names correspond to the metadata labels on monitored resources that fall under a workload (for example, k8s_container or k8s_pod).

Attributes

cluster_name[RW]

The name of the parent cluster. Corresponds to the JSON property `clusterName` @return [String]

location[RW]

The location of the parent cluster. This may be a zone or region. Corresponds to the JSON property `location` @return [String]

namespace_name[RW]

The name of the parent namespace. Corresponds to the JSON property `namespaceName` @return [String]

project_id[RW]

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]

top_level_controller_name[RW]

The name of this workload. Corresponds to the JSON property `topLevelControllerName` @return [String]

top_level_controller_type[RW]

The type of this workload (for example, “Deployment” or “DaemonSet”) Corresponds to the JSON property `topLevelControllerType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/monitoring_v3/classes.rb, line 1572
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/monitoring_v3/classes.rb, line 1577
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)
  @top_level_controller_name = args[:top_level_controller_name] if args.key?(:top_level_controller_name)
  @top_level_controller_type = args[:top_level_controller_type] if args.key?(:top_level_controller_type)
end