query
name = 'system.load.norm.15' and host='localhost'
. There are several builder methods available that help to refine query time range, limit the number of points returned, or set a metric field.dataSourceName
- name of the data source.query
- set of equality conditions.AsyncScriptResult[TelemetryScriptApiQueryResponse]
aggregation(method: String, bucketSize: String)
- returns aggregated telemetry using method
and bucketSize
.window(start: Instant, end: Instant)
- sets query time range. Use only start
to get all telemetry up to now or only end
to get all telemetry up to an instant in time.limit(points: Int)
- limits the number of points returned, applicable to none aggregated queries.metricField(fieldName: String)
- sets a field that holds metric value.compileQuery()
- returns the telemetry query that was created with this function and the builder methods. After this builder method no more builder methods can be called.