Class: Google::Apis::ConnectorsV1::NodeSloMetadata

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb

Overview

Node information for custom per-node SLO implementations. SSA does not support per-node SLO, but producers can populate per-node information in SloMetadata for custom precomputations. SSA Eligibility Exporter will emit per-node metric based on this information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NodeSloMetadata

Returns a new instance of NodeSloMetadata.



5710
5711
5712
# File 'lib/google/apis/connectors_v1/classes.rb', line 5710

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

Instance Attribute Details

#locationString

The location of the node, if different from instance location. Corresponds to the JSON property location

Returns:

  • (String)


5698
5699
5700
# File 'lib/google/apis/connectors_v1/classes.rb', line 5698

def location
  @location
end

#node_idString

The id of the node. This should be equal to SaasInstanceNode.node_id. Corresponds to the JSON property nodeId

Returns:

  • (String)


5703
5704
5705
# File 'lib/google/apis/connectors_v1/classes.rb', line 5703

def node_id
  @node_id
end

#per_sli_eligibilityGoogle::Apis::ConnectorsV1::PerSliSloEligibility

PerSliSloEligibility is a mapping from an SLI name to eligibility. Corresponds to the JSON property perSliEligibility



5708
5709
5710
# File 'lib/google/apis/connectors_v1/classes.rb', line 5708

def per_sli_eligibility
  @per_sli_eligibility
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5715
5716
5717
5718
5719
# File 'lib/google/apis/connectors_v1/classes.rb', line 5715

def update!(**args)
  @location = args[:location] if args.key?(:location)
  @node_id = args[:node_id] if args.key?(:node_id)
  @per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
end