Class: Google::Apis::MonitoringV3::ClusterIstio

Inherits:
Object
  • Object
show all
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

Istio service scoped to a single Kubernetes cluster. Learn more at https:// istio.io. Clusters running OSS Istio will have their services ingested as this type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterIstio

Returns a new instance of ClusterIstio.



615
616
617
# File 'lib/google/apis/monitoring_v3/classes.rb', line 615

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cluster_nameString

The name of the Kubernetes cluster in which this Istio service is defined. Corresponds to the cluster_name resource label in k8s_cluster resources. Corresponds to the JSON property clusterName

Returns:

  • (String)


595
596
597
# File 'lib/google/apis/monitoring_v3/classes.rb', line 595

def cluster_name
  @cluster_name
end

#locationString

The location of the Kubernetes cluster in which this Istio service is defined. Corresponds to the location resource label in k8s_cluster resources. Corresponds to the JSON property location

Returns:

  • (String)


601
602
603
# File 'lib/google/apis/monitoring_v3/classes.rb', line 601

def location
  @location
end

#service_nameString

The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics. Corresponds to the JSON property serviceName

Returns:

  • (String)


607
608
609
# File 'lib/google/apis/monitoring_v3/classes.rb', line 607

def service_name
  @service_name
end

#service_namespaceString

The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace metric label in Istio metrics. Corresponds to the JSON property serviceNamespace

Returns:

  • (String)


613
614
615
# File 'lib/google/apis/monitoring_v3/classes.rb', line 613

def service_namespace
  @service_namespace
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



620
621
622
623
624
625
# File 'lib/google/apis/monitoring_v3/classes.rb', line 620

def update!(**args)
  @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
  @location = args[:location] if args.key?(:location)
  @service_name = args[:service_name] if args.key?(:service_name)
  @service_namespace = args[:service_namespace] if args.key?(:service_namespace)
end