返回错误码说明
功能说明
API调用发生错误时,会有错误结构体返回,该小节主要是对云监控封装接口错误结构的解释。
接口返回体示例
{
"http_code":"403",
"message": {
"details":"Policy doesn't allow [ces:alarms:get] to be performed",
"code":"403"
}
} 术语解释
术语 | 解释 |
|---|---|
Cloud Eye | 云监控 |
内置指标 | 各个服务有自己内置支持的指标和维度,比如(SYS.ECS)支持的指标有cpu_util等。 |
Metric | Metric由3部分组成:Namespace,Dimensions(optional),MetricName,单纯的MetricName不是一个指标,不能标识任何东西。 |
错误码说明
模块 | http状态码 | 错误码 | 错误码说明 | Error Message | 描述(处理措施) |
|---|---|---|---|---|---|
Cloud Eye通用 | 500 | ces.0007 | 内部错误 | Internal service error. | 联系技术支持人员 |
API | 400 | ces.0001 | 请求内容不能为空 | The content must be specified. | 增加正确的请求内容 |
400 | ces.0003 | 项目ID为空或不正确 | The tenant ID is left blank or incorrect. | 添加或使用正确的项目ID | |
400 | ces.0004 | 未指定API版本号 | The API version must be specified. | 在请求URL中增加API版本号 | |
400 | ces.0005 | API版本不正确 | The API version is incorrect. | 使用正确的API版本号 | |
400 | ces.0006 | 分页地址不正确 | The paging address is incorrect. | 使用正确的分页信息 | |
403 | ces.0009 | 不允许添加系统指标 | Adding SYS metric is not allowed | 使用正确权限添加指标数据 | |
403 | ces.0010 | 不允许删除系统指标 | Deleting SYS metric is not allowed | 使用正确权限删除指标信息 | |
400 | ces.0011 | 请求无效 | The request is invalid. | 检查请求信息 | |
400 | ces.0013 | 无效的URL参数或参数不存在 | The URL parameter is invalid or does not exist. | 检查URL参数 | |
400 | ces.0014 | 请求体错误 | Some content in message body is not correct. | 检查请求Body体参数 | |
401 | ces.0015 | 鉴权失败或未提供有效鉴权信息 | Authentication fails or the authentication information is not provided. | 检查获取token的用户名或密码(或AK、SK)是否正确 | |
404 | ces.0016 | 请求的资源不存在 | The requested resource does not exist. | 确认所请求资源是否存在 | |
403 | ces.0017 | 鉴权信息错误或者无相应权限 | The authentication information is incorrect or the service invoker does not have sufficient rights. | 检查获取token的用户名或密码(或AK、SK)的信息、权限是否正确 | |
数据库 | 500 | ces.0008 | 数据库错误 | Database error. | 联系技术支持人员 |
Zookeeper | 500 | ces.0021 | 内部锁错误 | Internal locking error. | 联系技术支持人员 |
Blueflood | 500 | ces.0019 | 指标处理引擎异常 | The metric processing engine is abnormal. | 联系技术支持人员 |
Alarm | 400 | ces.0002 | 告警ID不能为空 | The alarm ID must be specified. | 添加正确的Alarm ID信息 |
403 | ces.0018 | Alarm配额不足 | The number of alarms exceeds the quota | 申请更多的Alarm配额 | |
400 | ces.0028 | 创建告警规则时指标和通知类型不匹配 | The metric does not support the alarm action type. | 根据参数说明修改指标或通知类型,使二者匹配 |

