|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The datasource config aggregation (shared by PROMETHEUS, UMODEL, and APM, with fields selected based on type). |
||
| instanceId |
string |
The Prometheus instance ID. This field is used when type is PROMETHEUS. |
rw-xxx |
| legacyRaw |
string |
The original V1 datasource JSON string returned as a fallback when type is UNKNOWN and read path parsing fails. The frontend displays this field as read-only when it is not empty. |
{"type":"SLS"} |
| legacyType |
string |
The legacy type, which is returned when type is UNKNOWN to indicate that this rule cannot be edited by using the new API. Submit a ticket to contact the CloudMonitor team. |
SLS |
| namespace |
string |
The namespace. This field is optional when type is VIRTUAL_PROMETHEUS and identifies the namespace to which the virtual Prometheus instance belongs. |
selectdb |
| productCategory |
string |
The cloud service category. This field is optional when type is CLOUD_MONITORING. Outputs unknown when this information is missing from the source. |
ecs |
| project |
string |
The Simple Log Service project name. This field is required when type is SLS, and all stores share the same project. |
my-project |
| regionId |
string |
The region ID. This field is optional for all types and defaults to the rule or gateway region. |
cn-hangzhou |
| stores |
array |
The Simple Log Service store list. This field is used when type is SLS and requires at least one store. Each store includes store and storeType. The project and regionId fields are moved to the top level. The fields with the same names remaining in Stores are deprecated and return 400 in the write path. |
[{"store":"cms-alert-log","storeType":"log"}] |
| Stores |
The configuration item for a single Simple Log Service store, which includes store and storeType. |
||
| tenantId |
string |
The tenant ID. This field is optional when type is VIRTUAL_PROMETHEUS and identifies the tenant to which the virtual Prometheus instance belongs. |
t-xxxxxxx |
| type |
string |
The data source type. |
PROMETHEUS |
DatasourceConfigUnified
Updated at:
Is this page helpful?