调用SetHighDefinitionMonitorLogStatus接口为EIP配置高精度秒级监控。
接口说明
SetHighDefinitionMonitorLogStatus 接口不支持同一个 EIP 实例并发配置高精度秒级监控。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
实例所在的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-hangzhou |
| LogProject |
string |
是 |
日志服务 LogProject 的名称。 |
hdmonitor-cn-shenzhen |
| LogStore |
string |
是 |
日志服务 LogStore 的名称。 |
hdmonitor |
| InstanceId |
string |
是 |
需要配置高精度秒级监控的实例 ID。 |
eip-wz9fi6qboho9fwgx7**** |
| InstanceType |
string |
否 |
实例的类型,仅取值为 EIP。 |
EIP |
| Status |
string |
是 |
实例的高精度秒级监控状态。取值:
|
ON |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回参数列表。 |
||
| Success |
string |
结果是否调用成功。
|
true |
| RequestId |
string |
请求 ID。 |
54B48E3D-DF70-471B-AA93-08E683A1B457 |
示例
正常返回示例
JSON格式
{
"Success": "true",
"RequestId": "54B48E3D-DF70-471B-AA93-08E683A1B457"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidInstanceId | Instance does not exist. | 实例不存在。 |
| 400 | ProjectOrLogstoreNotExist | The specified project or logstore does not exist. | 指定的项目或logstore不存在。 |
| 400 | SourceProjectNotExist | The Source Project or logstore does not exist. | SLS源项目或日志库不存在。 |
| 400 | Unauthorized | This api does not support sub user or role. | 此API不支持子用户或角色。 |
| 400 | ParameterInvalid | Invalid parameter. | 入参非法 |
| 400 | InvalidAction.NotSupport | This region does not support this action. | |
| 400 | RuleExist | The rule has already existed. | |
| 400 | InvalidHdMonitorStatus | Current instance status is not valid for this action. | |
| 400 | HdMonitorEipNumberOverLimit | This user has reached the maximum Eip number of high definination. | |
| 400 | InvalidAllocationId.NotFound | Specified allocation id is not found. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。