UpdateAppGroup
更新应用分组
服务地址:
华东1(杭州)
输入参数
只看必填
Description应用描述
GroupId应用ID
MaxConcurrency最大同时运行实例数量
Namespace命名空间ID
RegionId地域ID
AppVersion应用版本
MonitorConfigJson报警通知的配置
MonitorContactsJson报警联系人配置
插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

请求参数

字段名称字段详情
Descriptionstring

应用描述。

示例值:Test
GroupIdstring

应用 ID,在控制台的应用管理页面中获取。

示例值:testSchedulerx.defaultGroup参考取值来源:
    ListGroups
    CreateAppGroup
MaxConcurrencyinteger<int32>

最大同时运行实例数量,默认值为 1,即上次触发没有运行结束,即使到了运行时刻也不会进行下次触发。

示例值:1
Namespacestring

命名空间 ID,在控制台的命名空间页面中获取。

示例值:adcfc35d-e2fe-4fe9-bbaa-20e90ffc****参考取值来源:
    ListNamespaces
    CreateNamespace
RegionIdstring

地域 ID

示例值:cn-hangzhou参考取值来源:
    DescribeRegions
AppVersioninteger<int32>

应用版本,1:基础版,2:专业版

示例值:2枚举值:12
MonitorConfigJsonstring

报警通知的配置,支持以下属性:sendChannel、alarmType 和 webhookIsAtAll。展开详情

示例值:{ "sendChannel": "ding,sms,mail,phone", "alarmType": "Contacts", "webhookIsAtAll": false }
MonitorContactsJsonstring

报警联系人配置。支持配置报警联系人以及报警联系人组展开详情

示例值:[ {"name": "张三"}, {"name": "李四"} ]

返回参数

字段名称字段详情
RequestIdstring

Id of the request

示例值:4F68ABED-AC31-4412-9297-D9A8F0401108
Codeinteger<int32>

接口状态码

示例值:200
Messagestring

附加信息

示例值:app is not existed, groupId=xxxx, namesapce=xxxx
Successboolean

API 执行是否成功。取值如下:展开详情

示例值:true

返回说明

MonitorConfigJson 补充说明

报警通知的配置,支持以下属性:sendChannelalarmTypewebhookIsAtAll

配置格式

该字段的配置应为 JSON 格式,支持以下属性:

属性说明

  • 发送渠道sendChannel):

    • 支持多个渠道,使用逗号分隔,选项包括:
      • webhook: ding
      • 短信: sms
      • 邮件: mail
      • 电话: phone
  • 报警类型alarmType):

    • Contacts: 表示报警联系人
    • ContactGroup: 表示报警联系人组
  • 是否 @ 所有成员webhookIsAtAll):

    • 值为 "true""false",指示在发送通知时是否 @ 所有群成员。

示例

{
    "sendChannel": "ding,sms,mail,phone",
    "alarmType": "Contacts",
    "webhookIsAtAll": true
}

MonitorContactsJson 补充说明

报警联系人配置,根据 alarmType 的不同提供两种格式。

配置格式

该字段应为 JSON 格式,支持两种配置:联系人数组和联系人组对象。

属性说明

  • alarmTypeContacts

    • 配置为包含多个联系人对象的数组,每个对象需包含:
      • name: 联系人的名称
  • alarmTypeContactGroup

    • 配置为单个对象,包含:
      • name: 联系人组的名称

注意事项

建议提前创建联系人与联系人组。如果未创建,系统会自动生成相应的联系人和联系人组。用户需在“通知联系人”页面配置联系人手机号、邮箱等信息并激活,以确保报警能够正常发送。

示例

  • 示例 1 (当 alarmTypeContacts):

    [
        {"name": "张三"},
        {"name": "李四"}
    ]
    
  • 示例 2 (当 alarmTypeContactGroup):

    {
        "name": "报警联系人组-1"
    }
    
变更历史
暂无变更历史