Stream-level metrics.
curl --request GET \
--url https://a.s2.dev/v1/metrics/{basin}/{stream} \
--header 'Authorization: Bearer <token>'{
"values": [
{
"scalar": {
"name": "<string>",
"unit": "bytes",
"value": 123
}
}
]
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}metrics
Stream-level metrics.
Get storage metrics for an individual S2 stream.
GET
/
metrics
/
{basin}
/
{stream}
Stream-level metrics.
curl --request GET \
--url https://a.s2.dev/v1/metrics/{basin}/{stream} \
--header 'Authorization: Bearer <token>'{
"values": [
{
"scalar": {
"name": "<string>",
"unit": "bytes",
"value": 123
}
}
]
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}Metrics concepts
Review metric sets, parameters, scopes, and response types.
Metric sets
storage
Returns a gauge representing the cumulative stored bytes, per minute, of the specified stream.
Requires a start and end timestamp.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
Path Parameters
Basin name.
Required string length:
8 - 48Stream name.
Required string length:
1 - 512Query Parameters
Metric set to return.
Available options:
storage Start timestamp as Unix epoch seconds, if applicable for the metric set.
Required range:
x >= 0End timestamp as Unix epoch seconds, if applicable for metric set.
Required range:
x >= 0Interval to aggregate over for timeseries metric sets.
Available options:
minute, hour, day Response
Metrics comprising the set.
Single named value.
- Option 1
- Option 2
- Option 3
- Option 4
Show child attributes
Show child attributes

