Telemetry - script API
StackState Self-hosted v5.1.x
Function: Telemetry.query(dataSourceName: String, query: String)
Telemetry.query(dataSourceName: String, query: String)Args
Returns
Builder methods
Examples
Get metrics aggregated using Mean with bucket size 15 minutes and grouped by the field host:
host:Process the StreamingScriptResult result data, getting the ids of the resulting timeSeries
Get raw metric by query
Get metric aggregated using Mean with bucket size 1 minute
Query metrics starting 3 hours ago till now
Query metrics starting beginning of the data till last hour ago
Query metrics within time range starting 3 hours ago up to 1 hour ago
Query metrics from field "value" and limits points returned
See also
Last updated