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.
limit(points: Int)- limits the number of points returned, applicable to none aggregated queries.
metricField(fieldName: String)- optional, but may be required for some data sources. 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.
PERCENTILE_25- 25 percentile
PERCENTILE_50- 50 percentile
PERCENTILE_75- 75 percentile
PERCENTILE_90- 90 percentile
PERCENTILE_95- 95 percentile
PERCENTILE_98- 98 percentile
PERCENTILE_99- 99 percentile
EVENT_COUNT- the number of occurrences during bucket interval
SUM_NO_ZEROS- sum of the values (missing values from a data source won't be filled with zeros)
EVENT_COUNT_NO_ZEROS- the number of occurrences during bucket interval (missing values from a data source won't be filled with zeros)