From 6d740b78754ce064b5abfde676f0c50192e616df Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Fri, 29 Dec 2023 18:33:22 +0000 Subject: [PATCH] chore(models): add request compression to cloudwatch PutMetricData for testing --- codegen/sdk-codegen/aws-models/cloudwatch.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codegen/sdk-codegen/aws-models/cloudwatch.json b/codegen/sdk-codegen/aws-models/cloudwatch.json index d4737c31ce45a..3ed80576a8e77 100644 --- a/codegen/sdk-codegen/aws-models/cloudwatch.json +++ b/codegen/sdk-codegen/aws-models/cloudwatch.json @@ -5955,6 +5955,9 @@ } ], "traits": { + "smithy.api#requestCompression": { + "encodings": ["gzip"] + }, "smithy.api#documentation": "
Publishes metric data points to Amazon CloudWatch. CloudWatch associates\n\t\t\tthe data points with the specified metric. If the specified metric does not exist,\n\t\t\tCloudWatch creates the metric. When CloudWatch creates a metric, it can\n\t\t\ttake up to fifteen minutes for the metric to appear in calls to ListMetrics.
\nYou can publish either individual data points in the Value
field, or \n\t\tarrays of values and the number of times each value occurred during the period by using the \n\t\tValues
and Counts
fields in the MetricDatum
structure. Using\n\t\tthe Values
and Counts
method enables you to publish up to 150 values per metric\n\t\t\twith one PutMetricData
request, and\n\t\tsupports retrieving percentile statistics on this data.
Each PutMetricData
request is limited to 1 MB in size for HTTP POST requests. You can \n\t\t\tsend a payload compressed by gzip. Each request\n\t\tis also limited to no more than 1000 different metrics.
Although the Value
parameter accepts numbers of type\n\t\t\tDouble
, CloudWatch rejects values that are either too small\n\t\t\tor too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity,\n\t\t\t-Infinity) are not supported.
You can use up to 30 dimensions per metric to further clarify what data the metric collects. Each dimension\n\t\t\tconsists of a Name and Value pair. For more information about specifying dimensions, see Publishing Metrics in the\n\t\t\tAmazon CloudWatch User Guide.
\nYou specify the time stamp to be associated with each data point. You can specify\n\t\ttime stamps that are as much as two weeks before the current date, and as much as 2 hours after \n\t\tthe current day and time.
\nData points with time stamps from 24 hours ago or longer can take at least 48\n\t\t\thours to become available for GetMetricData or \n\t\t\tGetMetricStatistics from the time they \n\t\t\tare submitted. Data points with time stamps between 3 and 24 hours ago can take as much as 2 hours to become available\n\t\t\tfor for GetMetricData or \n\t\t\tGetMetricStatistics.
\nCloudWatch needs raw data points to calculate percentile statistics. If you publish \n\t\t\tdata using a statistic set instead, you can only retrieve \n\t\t\tpercentile statistics for this data if one of the following conditions is true:
\nThe SampleCount
value of the statistic set is 1 and Min
,\n\t\t\t\t\tMax
, and Sum
are all equal.
The Min
and\n\t\t\t\t\tMax
are equal, and Sum
is equal to Min
\n\t\t\t\t\tmultiplied by SampleCount
.