調用SetHighDefinitionMonitorLogStatus介面為EIP配置高精度秒級監控。
介面說明
SetHighDefinitionMonitorLogStatus 介面不支援同一個 EIP 執行個體並發配置高精度秒級監控。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
執行個體所在的地區 ID。 您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
cn-hangzhou |
| LogProject |
string |
是 |
Log Service LogProject 的名稱。 |
hdmonitor-cn-shenzhen |
| LogStore |
string |
是 |
Log Service 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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。