Class: Google::Apis::MonitoringV3::GkeWorkload
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::GkeWorkload
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb
Overview
A GKE Workload (Deployment, StatefulSet, etc). The field names correspond to the metadata labels on monitored resources that fall under a workload (e.g. k8s_container, k8s_pod).
Instance Attribute Summary collapse
-
#cluster_name ⇒ String
The name of the parent cluster.
-
#location ⇒ String
The location of the parent cluster.
-
#namespace_name ⇒ String
The name of the parent namespace.
-
#project_id ⇒ String
Output only.
-
#top_level_controller_name ⇒ String
The name of this workload.
-
#top_level_controller_type ⇒ String
The type of this workload (e.g. "Deployment" or "DaemonSet") Corresponds to the JSON property
topLevelControllerType.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GkeWorkload
constructor
A new instance of GkeWorkload.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GkeWorkload
Returns a new instance of GkeWorkload.
1529 1530 1531 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1529 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_name ⇒ String
The name of the parent cluster.
Corresponds to the JSON property clusterName
1500 1501 1502 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1500 def cluster_name @cluster_name end |
#location ⇒ String
The location of the parent cluster. This may be a zone or region.
Corresponds to the JSON property location
1505 1506 1507 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1505 def location @location end |
#namespace_name ⇒ String
The name of the parent namespace.
Corresponds to the JSON property namespaceName
1510 1511 1512 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1510 def namespace_name @namespace_name end |
#project_id ⇒ 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
1517 1518 1519 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1517 def project_id @project_id end |
#top_level_controller_name ⇒ String
The name of this workload.
Corresponds to the JSON property topLevelControllerName
1522 1523 1524 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1522 def top_level_controller_name @top_level_controller_name end |
#top_level_controller_type ⇒ String
The type of this workload (e.g. "Deployment" or "DaemonSet")
Corresponds to the JSON property topLevelControllerType
1527 1528 1529 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1527 def top_level_controller_type @top_level_controller_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1534 1535 1536 1537 1538 1539 1540 1541 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1534 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 |