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.
aggregation(method: String, bucketSize: String)- returns aggregated telemetry using
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.