Download OpenAPI specification:Download
API for managing HyperDX alerts and dashboards
Retrieves a list of all dashboards for the authenticated team
{- "data": [
- {
- "id": "65f5e4a3b9e77c001a567890",
- "name": "Service Overview",
- "tiles": [
- {
- "id": "65f5e4a3b9e77c001a901234",
- "name": "Error Rate",
- "x": 0,
- "y": 0,
- "w": 6,
- "h": 3,
- "asRatio": false,
- "series": [
- {
- "sourceId": "65f5e4a3b9e77c001a123456",
- "aggFn": "count",
- "field": "duration",
- "where": "level:error",
- "whereLanguage": "lucene",
- "groupBy": [
- "service",
- "host"
], - "metricName": "http_requests_total",
- "metricDataType": "gauge",
- "type": "time",
- "dataSource": "events"
}
]
}
], - "tags": [
- "production",
- "monitoring"
]
}
]
}Creates a new dashboard
| name required | string |
Array of objects (Tile) | |
| tags | Array of strings |
{- "name": "API Monitoring Dashboard",
- "tiles": [
- {
- "name": "API Request Volume",
- "x": 0,
- "y": 0,
- "w": 6,
- "h": 3,
- "asRatio": false,
- "series": [
- {
- "type": "time",
- "dataSource": "events",
- "aggFn": "count",
- "where": "service:api",
- "groupBy": [ ]
}
]
}
], - "tags": [
- "api",
- "monitoring"
]
}{- "data": {
- "id": "65f5e4a3b9e77c001a567890",
- "name": "API Monitoring Dashboard",
- "tiles": [
- {
- "id": "65f5e4a3b9e77c001a901234",
- "name": "API Request Volume",
- "x": 0,
- "y": 0,
- "w": 6,
- "h": 3,
- "asRatio": false,
- "series": [
- {
- "type": "time",
- "dataSource": "events",
- "aggFn": "count",
- "where": "service:api",
- "groupBy": [ ]
}
]
}
], - "tags": [
- "api",
- "monitoring"
]
}
}Retrieves a specific dashboard by ID
| id required | string Example: 65f5e4a3b9e77c001a567890 Dashboard ID |
{- "data": {
- "id": "65f5e4a3b9e77c001a567890",
- "name": "Infrastructure Monitoring",
- "tiles": [
- {
- "id": "65f5e4a3b9e77c001a901234",
- "name": "Server CPU",
- "x": 0,
- "y": 0,
- "w": 6,
- "h": 3,
- "asRatio": false,
- "series": [
- {
- "type": "time",
- "dataSource": "metrics",
- "aggFn": "avg",
- "field": "cpu.usage",
- "where": "host:server-01",
- "groupBy": [ ]
}
]
}, - {
- "id": "65f5e4a3b9e77c001a901235",
- "name": "Memory Usage",
- "x": 6,
- "y": 0,
- "w": 6,
- "h": 3,
- "asRatio": false,
- "series": [
- {
- "type": "time",
- "dataSource": "metrics",
- "aggFn": "avg",
- "field": "memory.usage",
- "where": "host:server-01",
- "groupBy": [ ]
}
]
}
], - "tags": [
- "infrastructure",
- "monitoring"
]
}
}Updates an existing dashboard
| id required | string Example: 65f5e4a3b9e77c001a567890 Dashboard ID |
| name | string |
Array of objects (Tile) | |
| tags | Array of strings |
{- "name": "Updated Dashboard Name",
- "tiles": [
- {
- "id": "65f5e4a3b9e77c001a901234",
- "name": "Updated Time Series Chart",
- "x": 0,
- "y": 0,
- "w": 6,
- "h": 3,
- "asRatio": false,
- "series": [
- {
- "type": "time",
- "dataSource": "events",
- "aggFn": "count",
- "where": "level:error",
- "groupBy": [ ]
}
]
}, - {
- "name": "New Number Chart",
- "x": 6,
- "y": 0,
- "w": 6,
- "h": 3,
- "asRatio": false,
- "series": [
- {
- "type": "number",
- "dataSource": "events",
- "aggFn": "count",
- "where": "level:info"
}
]
}
], - "tags": [
- "production",
- "updated"
]
}{- "data": {
- "id": "65f5e4a3b9e77c001a567890",
- "name": "Updated Dashboard Name",
- "tiles": [
- {
- "id": "65f5e4a3b9e77c001a901234",
- "name": "Updated Time Series Chart",
- "x": 0,
- "y": 0,
- "w": 6,
- "h": 3,
- "asRatio": false,
- "series": [
- {
- "type": "time",
- "dataSource": "events",
- "aggFn": "count",
- "where": "level:error",
- "groupBy": [ ]
}
]
}, - {
- "id": "65f5e4a3b9e77c001a901236",
- "name": "New Number Chart",
- "x": 6,
- "y": 0,
- "w": 6,
- "h": 3,
- "asRatio": false,
- "series": [
- {
- "type": "number",
- "dataSource": "events",
- "aggFn": "count",
- "where": "level:info"
}
]
}
], - "tags": [
- "production",
- "updated"
]
}
}Retrieves a specific alert by ID
| id required | string Example: 65f5e4a3b9e77c001a123456 Alert ID |
{- "data": {
- "id": "65f5e4a3b9e77c001a123456",
- "name": "CPU Usage Alert",
- "message": "CPU usage is above 80%",
- "threshold": 80,
- "interval": "5m",
- "thresholdType": "above",
- "source": "tile",
- "state": "active",
- "channel": {
- "type": "webhook",
- "webhookId": "65f5e4a3b9e77c001a789012"
}, - "team": "65f5e4a3b9e77c001a345678",
- "tileId": "65f5e4a3b9e77c001a901234",
- "dashboard": "65f5e4a3b9e77c001a567890",
- "createdAt": "2023-03-15T10:20:30.000Z",
- "updatedAt": "2023-03-15T14:25:10.000Z"
}
}Updates an existing alert
| id required | string Example: 65f5e4a3b9e77c001a123456 Alert ID |
| threshold | number |
| interval | string |
| thresholdType | string Enum: "above" "below" |
| source | string Enum: "tile" "search" |
| dashboardId | string |
| tileId | string |
object | |
| name | string |
| message | string |
{- "threshold": 500,
- "interval": "1h",
- "thresholdType": "above",
- "source": "tile",
- "dashboardId": "65f5e4a3b9e77c001a567890",
- "tileId": "65f5e4a3b9e77c001a901234",
- "channel": {
- "type": "webhook",
- "webhookId": "65f5e4a3b9e77c001a789012"
}, - "name": "Updated Alert Name",
- "message": "Updated threshold and interval"
}{- "data": {
- "id": "65f5e4a3b9e77c001a123456",
- "name": "High Error Rate",
- "message": "Error rate exceeds threshold",
- "threshold": 100,
- "interval": "15m",
- "thresholdType": "above",
- "source": "tile",
- "state": "inactive",
- "channel": {
- "type": "webhook",
- "webhookId": "65f5e4a3b9e77c001a789012"
}, - "team": "65f5e4a3b9e77c001a345678",
- "tileId": "65f5e4a3b9e77c001a901234",
- "dashboard": "65f5e4a3b9e77c001a567890",
- "savedSearch": "string",
- "groupBy": "string",
- "silenced": true,
- "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-01T00:00:00.000Z"
}
}Retrieves a list of all alerts for the authenticated team
{- "data": [
- {
- "id": "65f5e4a3b9e77c001a123456",
- "name": "High Error Rate",
- "message": "Error rate exceeds threshold",
- "threshold": 100,
- "interval": "15m",
- "thresholdType": "above",
- "source": "tile",
- "state": "inactive",
- "channel": {
- "type": "webhook",
- "webhookId": "65f5e4a3b9e77c001a789012"
}, - "team": "65f5e4a3b9e77c001a345678",
- "tileId": "65f5e4a3b9e77c001a901234",
- "dashboard": "65f5e4a3b9e77c001a567890",
- "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-01T00:00:00.000Z"
}
]
}Creates a new alert
| dashboardId | string |
| tileId | string |
| threshold required | number |
| interval required | string |
| source required | string Enum: "tile" "search" |
| thresholdType required | string Enum: "above" "below" |
required | object |
| name | string |
| message | string |
{- "dashboardId": "65f5e4a3b9e77c001a567890",
- "tileId": "65f5e4a3b9e77c001a901234",
- "threshold": 100,
- "interval": "1h",
- "source": "tile",
- "thresholdType": "above",
- "channel": {
- "type": "webhook",
- "webhookId": "65f5e4a3b9e77c001a789012"
}, - "name": "Error Spike Alert",
- "message": "Error rate has exceeded 100 in the last hour"
}{- "data": {
- "id": "65f5e4a3b9e77c001a123456",
- "name": "High Error Rate",
- "message": "Error rate exceeds threshold",
- "threshold": 100,
- "interval": "15m",
- "thresholdType": "above",
- "source": "tile",
- "state": "inactive",
- "channel": {
- "type": "webhook",
- "webhookId": "65f5e4a3b9e77c001a789012"
}, - "team": "65f5e4a3b9e77c001a345678",
- "tileId": "65f5e4a3b9e77c001a901234",
- "dashboard": "65f5e4a3b9e77c001a567890",
- "savedSearch": "string",
- "groupBy": "string",
- "silenced": true,
- "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-01T00:00:00.000Z"
}
}Retrieves time series data based on configured series parameters
required | Array of objects (ChartSeries) [ 1 .. 5 ] items Array of series configurations |
| startTime required | number Start timestamp in milliseconds |
| endTime required | number End timestamp in milliseconds |
| granularity | string Enum: "30s" "1m" "5m" "10m" "15m" "30m" "1h" "2h" "6h" "12h" "1d" "2d" "7d" "30d" "auto" Time bucket size for aggregations |
| seriesReturnType | string Enum: "ratio" "column" Format of the returned data |
{- "startTime": 1647014400000,
- "endTime": 1647100800000,
- "granularity": "1h",
- "series": [
- {
- "sourceId": "65f5e4a3b9e77c001a123456",
- "aggFn": "count",
- "where": "SeverityText:error",
- "groupBy": [ ]
}
]
}{- "data": [
- {
- "ts_bucket": 1647014400000,
- "series_0.data": 42
}, - {
- "ts_bucket": 1647018000000,
- "series_0.data": 37
}, - {
- "ts_bucket": 1647021600000,
- "series_0.data": 53
}
]
}