1. TSDB Auto
Op name:
scmetrics.tsdbQueryAuto
This executes TSDB metrics query without providing the aggregation interval. The aggregation interval is automatically calculated based on the start and end time.
Endpoint:
Method: POST
Type: application/json
URL: /v1/actions
Headers:
Key | Value | Description |
---|---|---|
Authorization | (Required) The Access Token or HMAC Signature | |
x-sc-identity | external | (Required) |
Query params:
Key | Value | Description |
---|---|---|
op | scmetrics.tsdbQueryAuto | (Required) Operation name |
pid | … | (Required) Project ID |
Body:
{
"time": {
"start": "...",
"end": "..."
},
"metrics": [
"..."
],
"aggregations": [
"...",
...
],
"filter": [
{
"tagk": "...",
"tagv": "..."
},
...
],
"postQueryOps": [
{
"args": [
{
"value": [
"...",
...
],
"key": "..."
}
],
"op": "...",
"type": "..."
},
{...},
...
],
"resamplingParams": {
"duration": "...",
"fn": "..."
}
}{
"time": {
"start": "...",
"end": "..."
},
"metrics": [
"..."
],
"aggregations": [
"...",
...
],
"filter": [
{
"tagk": "...",
"tagv": "..."
},
...
],
"postQueryOps": [
{
"args": [
{
"value": [
"...",
...
],
"key": "..."
}
],
"op": "...",
"type": "..."
},
{...},
...
],
"resamplingParams": {
"duration": "...",
"fn": "..."
}
}