UpdatePrometheusGlobalView
Updates the data sources of Prometheus instance for GlobalView.
This API has been deprecated with no replacement. While temporary access is maintained, no further updates or bug fixes will be provided. To ensure continued functionality, plan your migration and contact your account manager for support.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
arms:UpdatePrometheusGlobalView |
update |
*Prometheus
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region in which the Prometheus instance resides. |
cn-shenzhen |
| GroupName |
string |
No |
The name of the global aggregation instance. |
zyGlobalView |
| MostRegionId |
string |
No |
The region ID of the global aggregation instance. |
cn-hangzhou |
| ClusterId |
string |
Yes |
The ID of the Prometheus instance. |
global**** |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the Prometheus instance belongs. |
rg-acfmxyexli2**** |
| SubClustersJson |
string |
Yes |
The data sources of the Prometheus instance for GlobalView. |
[ { "headers":{ }, "regionId":"cn-hangzhou", "sourceType":"AlibabaPrometheus", "extras":{ }, "clusterId":"c39a1048921e04f***********", "sourceName":"arms-luyao-test", "dataSource":"", "userId":"1672753***********" }, { "headers":{ }, "regionId":"cn-beijing", "sourceType":"AlibabaPrometheus", "extras":{ }, "clusterId":"c6b6485496d5b40***********", "sourceName":"agent-321-测试", "dataSource":"", "userId":"1672753***********" }, { "headers":{ }, "regionId":"cn-zhangjiakou", "sourceType":"AlibabaPrometheus", "extras":{ }, "clusterId":"c261a4f3200c446***********", "sourceName":"zaifeng-cardinality-01", "dataSource":"", "userId":"1672753***********" } ] |
| AllSubClustersSuccess |
boolean |
Yes |
To edit a GlobalView aggregated instance, do you require all passed child instances to be verified successfully before creating a GlobalView instance (optional, default to false):
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Data |
object |
The returned struct. |
|
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| FailedInstances |
array<object> |
The data sources that failed to be updated. |
|
|
object |
|||
| SourceName |
string |
The name of the data source. |
sourcename-test |
| SourceType |
string |
The type of the data source. AlibabaPrometheus MetricStore CustomPrometheus |
AlibabaPrometheus |
| UserId |
string |
The user ID. |
23784673825******* |
| ClusterId |
string |
The ID of the Prometheus instance. |
cdb65ed2d527345********* |
| RequestId |
string |
The ID of the request. You can use the ID to query logs and troubleshoot issues. |
E9C9DA3D-10FE-472E-9EEF-2D0A3E41**** |
| Message |
string |
The error message that is returned if the request failed. |
message |
| Code |
integer |
The response code. The status code 200 indicates that the request was successful. |
200 |
Examples
Success response
JSON format
{
"Data": {
"Success": true,
"FailedInstances": [
{
"SourceName": "sourcename-test",
"SourceType": "AlibabaPrometheus",
"UserId": "23784673825*******",
"ClusterId": "cdb65ed2d527345*********"
}
]
},
"RequestId": "E9C9DA3D-10FE-472E-9EEF-2D0A3E41****",
"Message": "message",
"Code": 200
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.