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
-
#to_metric_config ⇒ AWSCDK::CloudWatch::MetricConfig
Inspect the details of the metric object.
-
#warnings ⇒ Array<String>?
deprecated
Deprecated.
- use warningsV2
-
#warnings_v2 ⇒ Hash{String => String}?
Any warnings related to this metric.
Class Method Details
.jsii_overridable_methods ⇒ Object
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_config ⇒ AWSCDK::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 |
#warnings ⇒ Array<String>?
Deprecated.
- use warningsV2
Note:
Default: - None
Any warnings related to this metric.
Should be attached to the consuming construct.
14 15 16 |
# File 'cloud_watch/i_metric.rb', line 14 def warnings() jsii_get_property("warnings") end |
#warnings_v2 ⇒ Hash{String => String}?
Note:
Default: - None
Any warnings related to this metric.
Should be attached to the consuming construct.
24 25 26 |
# File 'cloud_watch/i_metric.rb', line 24 def warnings_v2() jsii_get_property("warningsV2") end |