|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The query configuration aggregation (PROMETHEUS_SINGLE_QUERY / UMODEL_METRICSET_QUERY / APM_MULTI_QUERY). |
||
| aggregate |
string |
The aggregation function used when the type is UMODEL_METRICSET_QUERY or UMODEL_LOGSET_QUERY. |
AVG |
| checkAfterDataComplete |
boolean |
[Deprecated] Specifies whether to perform alert detection after data completion. This parameter was originally used when the type was PROMETHEUS_MULTI_QUERY. It duplicates enableDataCompleteCheck and returns a 400 error in the write path. |
true |
| dimensions |
array |
The list of dimensions used when the type is CLOUD_MONITORING_QUERY. Each dimension is a key-value string map. |
|
|
object |
{"instanceId":"i-abc123"} |
||
|
string |
The dimension value. |
i-abc123 |
|
| durationSecs |
integer |
The duration in seconds used when the type is PROMETHEUS_MULTI_QUERY. |
100 |
| enableDataCompleteCheck |
boolean |
Specifies whether the data integrity check is enabled. |
true |
| entityDomain |
string |
The domain to which the entity belongs. |
k8s |
| entityFields |
array |
The entity fields to be returned in the response. |
|
| EntityFields |
The entity field filter object. |
||
| entityFilters |
array |
The list of entity filters. |
|
| EntityFilters |
The UModel entity filter. |
||
| entityType |
string |
The type of the entity. |
k8s.pod |
| expr |
string |
The query expression or Search Processing Language (SPL) statement. Recommended when the type is PROMETHEUS_SINGLE_QUERY. Optional when the type is UMODEL_METRICSET_QUERY for custom SPL. Required when the type is UMODEL_LOGSET_QUERY, where an SPL query statement must be provided and validated by the business layer. |
Sample value |
| filterList |
array |
The list of Application Performance Monitoring (APM) filter conditions. |
|
| FilterList |
The APM filter configuration. |
||
| filterValues |
array |
The list of filter values for predefined metrics when the type is PROMETHEUS_PREDEFINED_METRIC_QUERY or PROMETHEUS_METRIC_GROUP_QUERY [Deprecated]. |
|
| PrometheusMetricFilterValue |
The filter item configuration. |
||
| groupFieldList |
array |
The list of grouping fields used when the type is SLS_MULTI_QUERY and the groupType is custom. |
|
|
string |
The name of the grouping field. |
hostName |
|
| groupId |
string |
The group ID used when the type is CLOUD_MONITORING_QUERY. This parameter has dual semantics: an og- prefix indicates an observation group (GROUP_V2, where the prefix defines the semantics and relationType is not required, and the backend resolves members through the entity library); a pure number indicates an application group (GROUP_V1 legacy resource group, which requires relationType=GROUP). |
og-845e0a26455f437c |
| groupType |
string |
The grouping strategy used when the type is SLS_MULTI_QUERY. Valid values: none, label, and custom. |
default |
| joinings |
array |
The list of joins used when the type is SLS_MULTI_QUERY. A maximum of two joins are supported. joinings[0] corresponds to the set operation between query 0 and query 1, and joinings[1] corresponds to the set operation between query 1 and query 2. |
|
| Joinings |
The join configuration for the query result set. |
||
| labelFilters |
array |
The label filter conditions. |
|
| LabelFilters |
The UModel label filter. |
||
| legacyRaw |
string |
The raw V1 query JSON string returned as a fallback when the type is UNKNOWN_QUERY and parsing fails in the read path. This string includes the field values that triggered the failure, such as filter.operator=ABC. The frontend displays this field in read-only mode when it is not empty. |
Sample value |
| legacyType |
string |
The legacy type returned when the type is UNKNOWN_QUERY. This parameter indicates that the rule cannot be edited by using the new API. Submit a ticket to contact the CloudMonitor product team. |
default |
| logSet |
string |
The name of the logset when the type is UMODEL_LOGSET_QUERY. |
Sample name |
| measureGroupKey |
string |
The measure group key. This parameter is optional when the type is APM_MULTI_QUERY and corresponds to alertMetricInput.groupKey in V1. |
Sample value |
| measureList |
array |
The list of APM measure configurations. |
|
| MeasureList |
The APM metric configuration. |
||
| metric |
string |
The name of the metric when the type is UMODEL_METRICSET_QUERY. |
node_cpu_seconds_total |
| metricGroupId |
string |
The metric group ID when the type is PROMETHEUS_PREDEFINED_METRIC_QUERY or PROMETHEUS_METRIC_GROUP_QUERY [Deprecated]. |
example-id-001 |
| metricId |
string |
The predefined metric ID when the type is PROMETHEUS_PREDEFINED_METRIC_QUERY. |
example-id-001 |
| metricIds |
array |
[Deprecated] The list of predefined metric IDs originally used when the type was PROMETHEUS_METRIC_GROUP_QUERY. This query type is deprecated, and the write path returns a 400 error. |
|
|
string |
The predefined metric ID. |
upper_normal |
|
| metricSet |
string |
The name of the metricset when the type is UMODEL_METRICSET_QUERY. |
cms.acs_ecs_dashboard.CPUUtilization |
| namespace |
string |
The CloudMonitor namespace, which is the cloud service name, when the type is CLOUD_MONITORING_QUERY. |
Sample name |
| offsetSecs |
integer |
The query time offset in seconds used when the type is UMODEL_METRICSET_QUERY or UMODEL_LOGSET_QUERY. This parameter is used together with windowSecs to implement offset queries in the range of [T - windowSecs - offsetSecs, T - offsetSecs]. Valid values: 0 to 86400. |
100 |
| paramValues |
array |
The list of parameter values for predefined metrics when the type is PROMETHEUS_PREDEFINED_METRIC_QUERY or PROMETHEUS_METRIC_GROUP_QUERY [Deprecated]. |
|
| PrometheusMetricParamValue |
The predefined metric parameter settings. |
||
| promQl |
string |
The Prometheus query statement when the type is PROMETHEUS_SINGLE_QUERY. |
avg(rate(node_cpu_seconds_total{mode="idle"}[5m])) * 100 |
| queries |
array |
The list of subqueries, which is polymorphic based on the type. When the type is SLS_MULTI_QUERY, each entry is an SlsNamedQueryEntry object containing timeUnit, start, end, window, and expr. When the type is PROMETHEUS_MULTI_QUERY, each entry is a PrometheusNamedQueryEntry object containing name and expr. When the type is UMODEL_METRICSET_MULTI_QUERY, each entry is a MetricSetNamedQueryEntry object. |
|
| Queries |
The subquery configuration. |
||
| relationType |
string |
The resource association type when the type is CLOUD_MONITORING_QUERY. |
INSTANCE |
| serviceIdList |
array |
The list of service IDs (type=APM_MULTI_QUERY). |
|
|
string |
The service ID. |
xxx-xxx-xxx |
|
| type |
string |
The query type. |
PROMETHEUS_SINGLE_QUERY |
| windowSecs |
integer |
The aggregation time window in seconds. Used when type=UMODEL_METRICSET_QUERY or UMODEL_LOGSET_QUERY. Valid range: [60, 86400]. |
100 |
QueryConfigUnified
Updated at:
Is this page helpful?