GET
/
metrics
curl --request GET \
  --url https://aws.s2.dev/v1/metrics \
  --header 'Authorization: Bearer <token>'
{
  "values": [
    {
      "scalar": {
        "name": "<string>",
        "unit": "bytes",
        "value": 123
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

set
enum<string>
required

Metric type to return.

Available options:
active_basins,
account_ops
start
integer

Start timestamp, in Unix epoch seconds, if applicable for metric set.

Required range: x >= 0
end
integer

End timestamp, in Unix epoch seconds, if applicable for metric set.

Required range: x >= 0
interval
enum<string>

For timeseries metric sets, the interval to aggregate over.

Available options:
minute,
hour,
day

Response

200
application/json

The response is of type object.