class
Amazonite::CloudWatch::PutMetricDataInput
- Amazonite::CloudWatch::PutMetricDataInput
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
cloudwatch/put_metric_data_input.crConstructors
- .new(pull : JSON::PullParser)
- .new(namespace : String, metric_data : Array(MetricDatum) | Nil = nil, entity_metric_data : Array(EntityMetricData) | Nil = nil, strict_entity_validation : Bool | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#entity_metric_data : Array(EntityMetricData) | Nil
Data for metrics that contain associated entity information.
-
#entity_metric_data=(entity_metric_data : Array(EntityMetricData) | Nil)
Data for metrics that contain associated entity information.
-
#hash(hasher)
See
Object#hash(hasher) -
#metric_data : Array(MetricDatum) | Nil
The data for the metrics.
-
#metric_data=(metric_data : Array(MetricDatum) | Nil)
The data for the metrics.
-
#namespace : String
The namespace for the metric data.
-
#namespace=(namespace : String)
The namespace for the metric data.
-
#strict_entity_validation : Bool | Nil
Whether to accept valid metric data when an invalid entity is sent.
-
#strict_entity_validation=(strict_entity_validation : Bool | Nil)
Whether to accept valid metric data when an invalid entity is sent.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
Data for metrics that contain associated entity information. You can include up to two
EntityMetricData objects, each of which can contain a single Entity and associated metrics.
The limit of metrics allowed, 1000, is the sum of both EntityMetricData and MetricData
metrics.
Data for metrics that contain associated entity information. You can include up to two
EntityMetricData objects, each of which can contain a single Entity and associated metrics.
The limit of metrics allowed, 1000, is the sum of both EntityMetricData and MetricData
metrics.
The data for the metrics. Use this parameter if your metrics do not contain associated entities. The array can include no more than 1000 metrics per call.
The limit of metrics allowed, 1000, is the sum of both EntityMetricData and MetricData
metrics.
The data for the metrics. Use this parameter if your metrics do not contain associated entities. The array can include no more than 1000 metrics per call.
The limit of metrics allowed, 1000, is the sum of both EntityMetricData and MetricData
metrics.
The namespace for the metric data. You can use ASCII characters for the namespace, except for control characters which are not supported.
To avoid conflicts with Amazon Web Services service namespaces, you should not specify a
namespace that begins with AWS/
The namespace for the metric data. You can use ASCII characters for the namespace, except for control characters which are not supported.
To avoid conflicts with Amazon Web Services service namespaces, you should not specify a
namespace that begins with AWS/
Whether to accept valid metric data when an invalid entity is sent.
-
When set to
true: Any validation error (for entity or metric data) will fail the entire request, and no data will be ingested. The failed operation will return a 400 result with the error. -
When set to
false: Validation errors in the entity will not associate the metric with the entity, but the metric data will still be accepted and ingested. Validation errors in the metric data will fail the entire request, and no data will be ingested.
In the case of an invalid entity, the operation will return a 200 status, but an additional
response header will contain information about the validation errors. The new header,
X-Amzn-Failure-Message is an enumeration of the following values:
-
InvalidEntity- The provided entity is invalid. -
InvalidKeyAttributes- The providedKeyAttributesof an entity is invalid. -
InvalidAttributes- The providedAttributesof an entity is invalid. -
InvalidTypeValue- The providedTypein theKeyAttributesof an entity is invalid. -
EntitySizeTooLarge- The number ofEntityMetricDataobjects allowed is 2. -
MissingRequiredFields- There are missing required fields in theKeyAttributesfor the providedType.
For details of the requirements for specifying an entity, see How to add related information to telemetry in the CloudWatch User Guide.
This parameter is required when EntityMetricData is included.
Whether to accept valid metric data when an invalid entity is sent.
-
When set to
true: Any validation error (for entity or metric data) will fail the entire request, and no data will be ingested. The failed operation will return a 400 result with the error. -
When set to
false: Validation errors in the entity will not associate the metric with the entity, but the metric data will still be accepted and ingested. Validation errors in the metric data will fail the entire request, and no data will be ingested.
In the case of an invalid entity, the operation will return a 200 status, but an additional
response header will contain information about the validation errors. The new header,
X-Amzn-Failure-Message is an enumeration of the following values:
-
InvalidEntity- The provided entity is invalid. -
InvalidKeyAttributes- The providedKeyAttributesof an entity is invalid. -
InvalidAttributes- The providedAttributesof an entity is invalid. -
InvalidTypeValue- The providedTypein theKeyAttributesof an entity is invalid. -
EntitySizeTooLarge- The number ofEntityMetricDataobjects allowed is 2. -
MissingRequiredFields- There are missing required fields in theKeyAttributesfor the providedType.
For details of the requirements for specifying an entity, see How to add related information to telemetry in the CloudWatch User Guide.
This parameter is required when EntityMetricData is included.