Class: Google::Apis::MonitoringV3::GkeService
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::GkeService
- 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
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).
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.
-
#service_name ⇒ String
The name of this service.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GkeService
constructor
A new instance of GkeService.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GkeService
Returns a new instance of GkeService.
1744 1745 1746 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1744 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_name ⇒ String
The name of the parent cluster.
Corresponds to the JSON property clusterName
1720 1721 1722 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1720 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
1725 1726 1727 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1725 def location @location end |
#namespace_name ⇒ String
The name of the parent namespace.
Corresponds to the JSON property namespaceName
1730 1731 1732 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1730 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
1737 1738 1739 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1737 def project_id @project_id end |
#service_name ⇒ String
The name of this service.
Corresponds to the JSON property serviceName
1742 1743 1744 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1742 def service_name @service_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1749 1750 1751 1752 1753 1754 1755 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1749 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 |