调用PutExporterRule接口创建或修改数据导出规则。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RuleName |
string |
否 |
规则名称。 说明
如果该规则名称与现有的名称重复,则表示修改,否则表示创建。 |
rule1_**** |
| Namespace |
string |
否 |
云服务的数据命名空间。更多信息,请参见云服务监控项。 |
acs_ecs_dashboard |
| MetricName |
string |
否 |
监控项名称。>详细信息请参见云服务监控项。 |
CPUUtilization |
| TargetWindows |
string |
否 |
导出数据的时间窗口。单位:秒。 说明
|
60,300 |
| Describe |
string |
否 |
导出规则描述。 |
desc_****** |
| DstNames |
array |
是 |
数据导出的目的地。 |
|
|
string |
否 |
数据导出的目的地。 |
dst_****** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Code |
string |
状态码。 说明
200 表示成功。 |
200 |
| Message |
string |
返回信息。 |
The specified resource is not found. |
| RequestId |
string |
请求 ID。 |
461CF2CD-2FC3-4B26-8645-7BD27E7D0F1D |
| Success |
boolean |
操作是否成功。取值:
|
true |
示例
正常返回示例
JSON格式
{
"Code": "200",
"Message": "The specified resource is not found.",
"RequestId": "461CF2CD-2FC3-4B26-8645-7BD27E7D0F1D",
"Success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | ParameterInvalid | Illegal parameters. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessForbidden | User not authorized to operate on the specified resource. | |
| 404 | ResourceNotFound | The specified resource is not found. | 未找到指定资源。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。