Skip to content

API : Metrics

Jon Seed edited this page Aug 26, 2016 · 2 revisions

Get Metric

GET /metrics/{namespace}/{metric}

Returns datapoint retrieved from CloudWatch metrics.

URL parameters

Period

Granulatiry (in seconds) of the returned datapoints. Must be a multiple of 60.

Type: Integer

Valid Range: Minimum value of 60

Required: Yes

Count

Number of periods to return data for.

Type: Integer

Required: Yes

Unit

The specific unit for a given metric.

Type: String

Valid Values: Seconds | Microseconds | Milliseconds | Bytes | Kilobytes | Megabytes | Gigabytes | Terabytes | Bits | Kilobits | Megabits | Gigabits | Terabits | Percent | Count | Bytes/Second | Kilobytes/Second | Megabytes/Second | Gigabytes/Second | Terabytes/Second | Bits/Second | Kilobits/Second | Megabits/Second | Gigabits/Second | Terabits/Second | Count/Second | None

Required: Yes

Statistic

The metric statistics to return.

Type: String

Valid Values: SampleCount | Average | Sum | Minimum | Maximum

Required: Yes

Dimension

The value of the TableName Dimension to retrieve metrics for. Useful when retrieving values for individual replications.

Type: String

Required: No

Sample response data

{
  "Label": "RecordsProcessed",
  "DataPoints": [
    {
      "Timestamp": "2016-08-26T04:34:00.000Z", 
      "Sum": "104",
      "Unit": "Count"
    },
    {
      "Timestamp": "2016-08-26T06:44:00.000Z",
      "Sum":129,
      "Unit":"Count"
    }
  ]
}
Clone this wiki locally