查询数据集成新版任务告警规则列表,当前支持的任务类型包括:MySQL到Hologres整库实时解决方案。
接口说明
当您的任务同步类型中包含实时同步时,支持设置告警规则。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action
元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用前面加 * 表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|
dataworks:* | list | *全部资源 * |
| 无 |
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
DIJobId | long | 是 | 任务 ID,是告警规则关联的任务 ID。 | 11260 |
PageNumber | long | 否 | 页码,默认为 1。 | 1 |
PageSize | long | 否 | 分页大小,默认为 10。 | 10 |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "74C2FECD-5B3A-554A-BCF5-35****",
"DIAlarmRulePaging": {
"TotalCount": 2,
"PageNumber": 1,
"PageSize": 10,
"DIJobAlarmRules": [
{
"DIAlarmRuleId": 41998,
"DIJobId": 11260,
"Description": "mysql synchronizes to hologres heartbeat alert",
"MetricType": "Heartbeat",
"Enabled": true,
"TriggerConditions": [
{
"Severity": "Warning",
"Duration": 15,
"Threshold": 5
}
],
"NotificationSettings": {
"NotificationChannels": [
{
"Severity": "Warning",
"Channels": [
"Ding"
]
}
],
"NotificationReceivers": [
{
"ReceiverType": "DingToken",
"ReceiverValues": [
"token1"
]
}
],
"InhibitionInterval": 5
}
}
]
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | 没有权限,请授权 |
429 | Throttling.Api | The request for this resource has exceeded your available limit. | 对该资源的请求已超过您的可用上限。 |
429 | Throttling.System | The DataWorks system is busy. Try again later. | DataWorks系统繁忙,请稍后再试。 |
429 | Throttling.User | Your request is too frequent. Try again later. | 您的请求过于频繁,请尝试放缓请求速度。 |
500 | InternalError.System | An internal system error occurred. Try again later. | 系统内部错误,请稍后再试。 |
500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | 系统内部错误,请稍后再试。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|
暂无变更历史