Modifies a namespace.
This topic provides an example on how to change the data retention period of the aliyun namespace to cms.s1.2xlarge. The returned result indicates that the namespace is modified.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | ModifyHybridMonitorNamespace |
The operation that you want to perform. Set the value to ModifyHybridMonitorNamespace. |
| Namespace | String | Yes | aliyun |
The name of the namespace. The name can contain letters, digits, and hyphens (-). For information about how to obtain the name of a namespace, see DescribeHybridMonitorNamespaceList. |
| Description | String | No | The namespace for the metrics of Alibaba Cloud services. |
The description of the namespace. |
| Spec | String | No | cms.s1.2xlarge |
The data retention period of the namespace. Valid values:
For information about the pricing for different retention periods, see the Pricing section in Billing of the dashboard feature. |
For more information about common request parameters, see Common parameters.
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| Code | String | Success |
Indicates whether the request was successful. |
| Message | String | %s |
The error message. |
| RequestId | String | E190AB2E-7BF9-59B7-9DDC-7CB1782C5ECD |
The ID of the request. |
| Success | String | true |
Indicates whether the call was successful. Valid values:
|
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyHybridMonitorNamespace
&Namespace=aliyun
&Spec=cms.s1.2xlarge
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyHybridMonitorNamespace>
<RequestId>E190AB2E-7BF9-59B7-9DDC-7CB1782C5ECD</RequestId>
<Code>Success</Code>
<Success>true</Success>
</ModifyHybridMonitorNamespace>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "E190AB2E-7BF9-59B7-9DDC-7CB1782C5ECD",
"Code" : "Success",
"Success" : true
}
Error codes
For a list of error codes, visit the Error Center.