Class: Aws::CloudWatchOmni::Types::MetricMetadata

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb

Overview

A single metric observed on a context graph node.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#attributesHash<String,String>

Per-metric qualifying attributes the console uses to query this metric's telemetry. These are the RAW, store-matching values keyed by their OTel names ("service.name", "service.namespace", "cloud.provider", "cloud.account.id", "cloud.region", "instrumentation_scope") — deliberately NOT the node's normalized/merged identity, so the query selectors match the emitted series. A merged node can carry different values per metric, which is why they live here rather than on the node.

Returns:

  • (Hash<String,String>)


3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 3368

class MetricMetadata < Struct.new(
  :name,
  :namespace,
  :preferred_stat,
  :metric_type,
  :attributes,
  :semantics)
  SENSITIVE = []
  include Aws::Structure
end

#metric_typeString

OTel metric kind: "gauge", "sum", "histogram", "exponential_histogram", or "summary" (CloudWatch-vended metrics carry the same kinds). Absent when the producer did not report one.

Returns:

  • (String)


3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 3368

class MetricMetadata < Struct.new(
  :name,
  :namespace,
  :preferred_stat,
  :metric_type,
  :attributes,
  :semantics)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

The metric name as emitted, such as "Duration".

Returns:

  • (String)


3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 3368

class MetricMetadata < Struct.new(
  :name,
  :namespace,
  :preferred_stat,
  :metric_type,
  :attributes,
  :semantics)
  SENSITIVE = []
  include Aws::Structure
end

#namespaceString

DEPRECATED: read attributes["service.namespace"] instead. Retained (deprecated) for backward compatibility with existing consumers; will be removed once they migrate. The logical service grouping the metric belongs to.

Returns:

  • (String)


3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 3368

class MetricMetadata < Struct.new(
  :name,
  :namespace,
  :preferred_stat,
  :metric_type,
  :attributes,
  :semantics)
  SENSITIVE = []
  include Aws::Structure
end

#preferred_statString

The statistic to chart or alarm on, such as "p99" or "Sum". Free-form and frequently absent.

Returns:

  • (String)


3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 3368

class MetricMetadata < Struct.new(
  :name,
  :namespace,
  :preferred_stat,
  :metric_type,
  :attributes,
  :semantics)
  SENSITIVE = []
  include Aws::Structure
end

#semanticsTypes::MetricSemantics

What the metric means and the unit it is reported in.



3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
# File 'gems/aws-sdk-cloudwatchomni/lib/aws-sdk-cloudwatchomni/types.rb', line 3368

class MetricMetadata < Struct.new(
  :name,
  :namespace,
  :preferred_stat,
  :metric_type,
  :attributes,
  :semantics)
  SENSITIVE = []
  include Aws::Structure
end