Module: AWSCDK::CloudWatch::IMetric

Included in:
MathExpression, Metric, SearchExpression
Defined in:
cloud_watch/i_metric.rb

Overview

Interface for metrics.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



35
36
37
38
39
40
41
# File 'cloud_watch/i_metric.rb', line 35

def self.jsii_overridable_methods
  {
    :warnings => { kind: :property, name: "warnings", is_optional: true },
    :warnings_v2 => { kind: :property, name: "warningsV2", is_optional: true },
    :to_metric_config => { kind: :method, name: "toMetricConfig", is_optional: false },
  }
end

Instance Method Details

#to_metric_configAWSCDK::CloudWatch::MetricConfig

Inspect the details of the metric object.



31
32
33
# File 'cloud_watch/i_metric.rb', line 31

def to_metric_config()
  jsii_call_method("toMetricConfig", [])
end

#warningsArray<String>?

Deprecated.
  • use warningsV2
Note:

Default: - None

Any warnings related to this metric.

Should be attached to the consuming construct.

Returns:

  • (Array<String>, nil)


14
15
16
# File 'cloud_watch/i_metric.rb', line 14

def warnings()
  jsii_get_property("warnings")
end

#warnings_v2Hash{String => String}?

Note:

Default: - None

Any warnings related to this metric.

Should be attached to the consuming construct.

Returns:

  • (Hash{String => String}, nil)


24
25
26
# File 'cloud_watch/i_metric.rb', line 24

def warnings_v2()
  jsii_get_property("warningsV2")
end