KubeGems
  1. Observability
KubeGems
  • Agent.V1
    • kubegems default alert webhook
    • 获取k8s api-resources
    • 获取alertmanager中的告警数据
    • 检查alertmanagerconfig
    • get silence
    • 为指定告警规则添加silence
    • get silence
    • rollout info
    • rollout info
    • 获取Job列表数据
    • 获取可以绑定的环境的namespace列表数据
    • 获取Event列表数据
    • 获取Pod列表数据
    • 实时获取日志STDOUT输出(websocket)
    • 进入容器交互执行命令(websocket)
    • 从容器下载文件
    • upload files to container
    • 获取PersistentVolumeClaim列表数据
    • 获取PersistentVolumeClaim数据
    • 获取Secret列表数据
    • 自定义的NODE详情接口,(可以获取资源分配情况)
    • 修改节点调度
    • 修改node的元数据,label和annotations
    • 修改节点污点
    • 调试容器(websocket)
    • Jaeger span count
    • Loki Alert Rule
    • Loki Labels
    • Loki LabelValues
    • 获取Pods最近十五分钟的Metrics(从scraper获取)
    • 获取Pods实时Metrics
    • Loki Query
    • Loki QueryRange
    • 获取Node实时Metrics
    • Loki Series
    • 获取Nodes最近十五分钟的Metrics(从scraper获取)
    • Loki LabelValues
    • 获取指定Node实时Metrics
    • Prometheus alertrule
    • CertInfo
    • ComponentStatus
    • Prometheus Labelnames
    • Prometheus LabelValues
    • Prometheus Matrix
    • Prometheus Targets
    • Prometheus Vector
    • 获取集群级别统计
    • 获取集群级别资源统计
    • 获取集群内各种workload的统计
    • kubectl
    • 获取namespaced scope workload list
    • 获取namespaced scope workload
    • 创建namespaced scope workload
    • 创建 none namespaced scope workload
    • 创建namespaced scope workload
    • 创建namespaced scope workload
    • 扩缩容
    • 获取 none namespaced scope workload list
    • 获取 none namespaced scope workload
    • 创建none namespaced scope workload
    • 创建namespaced scope workload
    • 创建none namespaced scope workload
    • 创建none namespaced scope workload
    • nonamespace 扩缩容
  • MSGBUS
    • 消息中心(websocket)
    • 发送消息
  • Application
    • 更新应用镜像
    • 更新资源建议至 gitrepo
    • 列举文件
    • 应用列表
    • 部署应用
    • 批量部署应用
    • 应用部署镜像
    • 更新应用镜像并部署
    • 应用部署
    • 删除应用
    • 部署历史
    • argo资源
    • argo资源
    • 写入多个文件
    • 写入文件
    • 删除文件
    • 应用编排文件diff
    • 应用编排文件历史
    • 应用编排文件刷新
    • 应用编排文件回滚
    • 应用编排中HPA
    • 应用编排中HPA
    • 应用编排HPA
    • 镜像历史
    • 更新应用镜像并部署
    • 更新应用镜像并部署
    • 应用编排中副本数scale(包含运行时调整)
    • 应用编排中副本数scale(包含运行时调整)
    • 资源树实时状态(List/Watch)
    • 获取对应的服务信息
    • Sync同步
    • 应用异步任务
    • 应用商店应用列表
    • 应用商店部署
    • 应用商店应用列表
    • 应用商店应用
    • 应用内容类型摘要
  • Alert
    • 告警黑名单
    • 加入/更新告警黑名单
    • 移除告警黑名单
    • 获取AlertRule列表
    • 创建AlertRule
    • AlertRule详情
    • 修改AlertRule
    • 修改AlertRule
    • 禁用AlertRule
    • 启用AlertRule
    • 告警历史
    • 重复的告警记录
    • 在namespace下获取receiver列表
    • 在namespace下创建receiver
    • 在namespace下修改receiver
    • 在namespace下删除receiver
    • 发送测试邮件
    • 搜索告警
    • 告警趋势图
    • 告警分组统计
    • 搜索告警
    • 今日告警数量统计
  • Approve
    • 获取待处理审批
    • 批准集群资源配额申请
    • 拒绝集群资源配额申请审批拒绝
  • Appstore
    • 应用商店-查询所有APP
    • APP详情
    • APP Charts文件编码
    • 列出所有的外部应用的charts仓库
    • 创建应用商店外部charts仓库
    • APP 删除外部chart仓库
    • APP 同步外部chart仓库
  • AuditLog
    • AuditLog列表
    • AuditLog详情
  • AuthSource
    • AuthSource列表
    • create AuthSource
    • modify AuthSource
    • delete AuthSource
    • AuthSource列表 (no auth)
    • AuthSource 预定义的源默认值
  • Cluster
    • Cluster列表
    • 创建Cluster
    • 列出集群状态
    • 添加cluster前的kubeconfig检测接口,验证kubeconfig,返回集群信息和可用的storageClass列表
    • Cluster详情
    • 修改Cluster
    • 删除 Cluster
    • 获取属于 Cluster 的 Environment 列表
    • 获取属于 Cluster 的 LogQueryHistory 列表
    • 聚合查询日志查询历史, unique logql desc 按照当前用户的查询历史聚合
    • 获取属于 Cluster 的 LogQuerySnapshot 列表
    • 集群资源状态
  • Agent.Plugin
    • 获取Plugin列表数据
    • 获取Plugin列表数据
    • 禁用插件
    • 禁用插件
    • 启用插件
    • 插件详情
    • 获取Plugin列表数据
    • 启用插件
    • 禁用插件
    • 检查更新
    • 启用插件
  • Environment
    • Environment列表
    • Environment详情
    • 修改Environment
    • 删除 Environment
    • 获取属于 Environment 的 User 列表
    • 在User和Environment间添加关联关系
    • 获取Environment 的一个 User详情
    • 修改 User 和 Environment 的关联关系
    • 删除 User 和 Environment 的关系
  • NetworkIsolated
    • 环境网络隔离开关
    • 项目网络隔离开关
    • 租户网络隔离开关
  • ResourceList
    • 获取环境资源清单
    • 获取项目资源清单
    • Workload列表
    • Workload删除
  • Event
    • 获取事件
  • Log
    • 获取loki上下文
    • 导出loki查询结果
    • 获取loki指定标签值
    • 获取loki标签
    • 获取loki查询语句
    • 获取loki查询结果
    • 获取loki Series
  • AAAAA
    • JWT登录
    • 获取OAUTH登录地址
    • OAUTH登录callback
    • OAUTH登录callback
  • LogQueryHistory
    • LogQueryHistory列表
    • 创建LogQueryHistory
    • 批量删除 LogQueryHistory
    • 删除 LogQueryHistory
  • LogQuerySnapshot
    • LogQuerySnapshot列表
    • 创建LogQuerySnapshot
    • LogQuerySnapshot详情
    • 删除 LogQuerySnapshot
  • Message
    • 获取我的消息列表
    • 获取消息详情
  • Metrics
    • 采集器列表
    • 添加/更新采集器
    • 删除采集器
    • 监控dashboard列表
    • 创建/更新dashboad
    • 删除dashboad
    • 监控标签值
    • 监控指标查询
    • 获取prometheu查询模板
    • 添加prometheu查询模板
    • 删除prometheu查询模板
  • User
    • 获取当前用户权限列表
    • 获取当前用户的信息
    • 重设密码
    • 获取当前用户租户列表
    • User列表
    • self update information
    • 创建User
    • 获取多个环境的用户列表
    • User详情
    • 修改User
    • 删除 User
    • 重置用户密码
    • 获取属于 User 的 Tenant 列表
  • NOPROXY
    • 获取HPA form
    • 设置HPA
    • 从快照恢复PVC
    • 快照PVC
  • Project
    • Project列表
    • 获取项目资源统计列表[quota]
    • Project详情
    • 修改Project
    • 删除 Project
    • 获取项目下环境列表,按照集群聚合,同时获取集群的下的租户网络策略
    • 获取属于 Project 的 Environment 列表
    • 创建一个属于 Project 的Environment
    • 获取项目下的环境资源统计列表[quota]
    • 获取Project 的一个 Environment详情
    • 单个环境下的资源统计[quota]
    • 项目环境资源统计
    • 项目非资源类型数据统计
    • 获取单个项目资源统计[quota]
    • 获取属于 Project 的 Registry 列表
    • 创建一个属于 Project 的Registry
    • 获取Project 的一个 Registry详情
    • 修改Project 的 Registry
    • 删除 Project 的 Registry
    • 设置 Project 的 默认 Registry
    • 项目资源统计
    • 获取属于 Project 的 User 列表
    • 在User和Project间添加关联关系
    • 获取Project 的一个 User详情
    • 修改 User 和 Project 的关联关系
    • 删除 User 和 Project 的关系
  • Registry
    • Registry列表
    • Registry详情
    • 修改Registry
    • 删除 Registry
  • Sels
    • application sels
    • environment sels
    • project sels
    • tenant sels
    • user sels
  • System
    • 列出所有系统配置
    • 获取用户配置
    • 获取系统配置
    • 修改系统配置
  • SystemRole
    • SystemRole列表
    • 创建SystemRole
    • SystemRole详情
    • 删除 SystemRole
    • 获取属于 SystemRole 的 User 列表
    • 修改 User 和 SystemRole 的关联关系
    • 删除 User 和 SystemRole 的关系
  • Tenant
    • Tenant列表
    • 创建Tenant
    • Tenant详情
    • 修改Tenant
    • 删除 Tenant
    • 取消激活租户,当租户为激活状态的时候才可用
    • 激活租户,当租户为未激活状态的时候才可用
    • 创建or修改租户集群资源变更申请
    • 获取TenantGateway 列表
    • 创建TenantGateway
    • 获取TenantGateway
    • 更新TenantGateway
    • 删除TenantGateway
    • 获取TenantGateway adddresses
    • 获取租户下的所有Environment列表
    • 搜索环境
    • 获取租户下所有的环境以及资源状态
    • 获取属于 Tenant 的 Project 列表
    • 创建一个属于 Tenant 的Project
    • 获取Tenant 的一个 Project详情
    • 租户下所有项目的资源统计列表[quota]
    • 租户非资源类型统计
    • 获取属于 Tenant 的 TenantResourceQuota 列表
    • 创建一个属于 Tenant 的TenantResourceQuota
    • 删除租户在一个集群下的资源
    • 获取Tenant 的一个 TenantResourceQuota详情
    • 获取租户集群资源变更申请详情
    • 获取属于 Tenant 的 User 列表
    • 在User和Tenant间添加关联关系
    • 获取Tenant 的一个 User详情
    • 修改 User 和 Tenant 的关联关系
    • 删除 User 和 Tenant 的关系
  • ApplicationManifest
    • admim查询所有应用编排列表
    • 应用编排列表
    • 应用编排详情
    • 修改应用编排描述
    • 删除创建应用编排
    • 列举文件
    • 写入多个文件
    • 写入文件
    • 删除文件
    • 应用编排文件diff
    • 应用编排文件历史
    • 应用编排文件刷新
    • 应用编排文件回滚
    • 创建应用编排
  • StrategyDeployment
    • 更新过程中的控制
    • 更新过程中的实时状态
    • 获取支持的灰度分析
    • 获取当前的应用更新策略
    • 使用更新策略更新应用
  • ProjectImage
    • 镜像扫描
    • 镜像summary
    • 镜像tags
    • 镜像不可发布标记
    • 镜像安全报告
  • VirtualDomain
    • VirtualDomain列表
    • 创建VirtualDomain
    • VirtualDomain详情
    • 更新VirtualDomain
    • 删除 VirtualDomain
  • VirtualSpace
    • VirtualSpace列表
    • 创建VirtualSpace
    • VirtualSpace详情
    • 更新VirtualSpace
    • 删除 VirtualSpace
    • 激活/禁用VirtualSpace
    • 获取虚拟空间下的环境
    • 向虚拟空间增加环境
    • 从虚拟空间删除环境
    • 列举 istio 资源
    • kiali代理
    • service列表
    • service详情
    • service故障注入
    • service请求路由
    • service超时配置
    • service重置
    • service tcp流量切换
    • service流量切换
    • workload列表
    • 注入istio控制
    • 设置虚拟域名
    • workload详情
    • 获取属于 VirtualSpace 的 User 列表
    • 在User和VirtualSpace间添加关联关系
    • 删除 User 和 VirtualSpace 的关系
  • Istio
    • istio网关实例列表
    • 更新istio网关实例
    • 创建istio网关实例`
    • istio网关实例列表
    • 删除istio网关实例
  • EnvironmentObservabilityDetails
    • 环境可观测性概览
  • Observability
    • 导入告警规则
      POST
    • 禁用告警规则
      POST
    • 启用告警规则
      POST
    • 生成告警规则消息
      POST
    • 同步告警规则
      POST
    • 告警历史
      GET
    • 禁用日志告警规则
      POST
    • 重复的告警记录
      GET
    • namespace级日志采集器
      PUT
    • 启用日志告警规则
      POST
    • 日志告警规则列表
      GET
    • 创建日志告警规则
      POST
    • 日志告警接收器列表
      GET
    • 日志告警规则状态
      GET
    • 日志告警规则详情
      GET
    • 创建日志告警接收器
      POST
    • 更新日志告警规则
      PUT
    • 更新日志告警接收器
      PUT
    • 删除日志告警规则
      DELETE
    • 删除日志告警接收器
      DELETE
    • 获取支持日志采集的应用及标签
      GET
    • 应用级日志采集器
      POST
    • 监控采集器详情
      GET
    • 添加/更新监控采集器
      POST
    • 删除监控采集器
      DELETE
    • 监控告警规则列表
      GET
    • 创建监控告警规则
      POST
    • 监控告警规则状态
      GET
    • 监控告警规则详情
      GET
    • 修改监控告警规则
      PUT
    • (日志/监控)告警接收器列表
      GET
    • 修改监控告警规则
      DELETE
    • 创建(日志/监控)告警接收器
      POST
    • 查群prometheus label names
      GET
    • 发送测试邮件
      POST
    • 发送测试邮件
      POST
    • 监控标签值
      GET
    • 更新(日志/监控)告警接收器
      PUT
    • 监控指标查询
      GET
    • 删除(日志/监控)告警接收器
      DELETE
    • 监控采集器状态
      GET
    • 应用性能监控概览
      GET
    • 应用性能监控服务
      GET
    • 应用操作
      GET
    • 应用请求
      GET
    • 获取prometheu查询模板
      GET
    • 应用traces
      GET
    • 添加prometheu查询模板
      POST
    • 监控面板模板列表
      DELETE
    • OtelMetricsGraphs
      GET
    • 删除prometheu查询模板
      DELETE
    • GetTrace by trace_id
      GET
    • 监控dashboard列表
      GET
    • 创建监控dashboad
      POST
    • 监控dashboard详情
      GET
    • 更新监控dashboad
      PUT
    • 删除监控dashboad
      DELETE
    • 监控dashboard panne指标查询
      GET
    • 获取exporter的schema
      GET
    • 监控面板模板列表
      GET
    • 导入监控面板模板
      POST
    • 监控面板模板详情
      GET
    • 更新监控面板模板
      PUT
    • 删除监控面板模板
      DELETE
    • 告警趋势图
      GET
    • 告警分组统计
      GET
    • 搜索告警
      GET
    • 今日告警数量统计
      GET
    • 告警渠道列表
      GET
    • 创建告警渠道
      POST
    • 渠道列表详情
      GET
    • 更新告警渠道
      PUT
    • 删除告警渠道
      DELETE
    • 测试告警渠道
      POST
    • 获取promql模板三级目录rule
      GET
    • 添加promql模板三级目录rule
      POST
    • 获取promql模板三级目录rule
      GET
    • 更新promql模板三级目录rule
      PUT
    • 删除promql模板三级目录rule
      DELETE
    • 获取promql模板一级目录scope
      GET
    • 获取promql模板二级目录resource
      GET
    • 由scope,resource,rule name获取tpl
      GET
  • Oauth
    • 用户token列表
    • 签发oauth jwt token
    • 删除用户token
    • 检验oauth jwt token
  • Announcement
    • 公告列表
    • 发布公告
    • 获取单个公告
    • 更新公告
    • 删除公告
  1. Observability

更新告警渠道

PUT
/v1/observability/tenant/{tenant_id}/channels/{channel_id}
Observability
更新告警渠道

请求参数

Path 参数
tenant_id
string 
必需
租户id, 所有租户为_all
channel_id
string 
告警渠道id
必需
Body 参数application/json
channelConfig
object (channels.ChannelConfig) 
可选
ChannelIf
可选
id
integer 
可选
name
string 
可选
>= 1 字符<= 50 字符
tenant
object (models.Tenant) 
可选
allocatedResourcequota
object (v1.ResourceList) 
可选
createdAt
string 
可选
id
integer 
可选
isActive
boolean 
是否激活
可选
projects
array[object (models.Project) {12}] 
可选
remark
string 
备注
可选
resourceQuotas
array[object (models.TenantResourceQuota) {8}] 
可选
tenantName
string 
租户名字
可选
updatedAt
string 
可选
users
array[object (models.User) {13}] 
可选
tenantID
integer 
可选
若为null,则表示系统预置
示例
{
  "channelConfig": {
    "ChannelIf": null
  },
  "id": 0,
  "name": "string",
  "tenant": {
    "allocatedResourcequota": {
      "property1": {
        "Format": "string"
      },
      "property2": {
        "Format": "string"
      }
    },
    "createdAt": "string",
    "id": 0,
    "isActive": true,
    "projects": [
      {
        "applications": [
          {
            "applicationName": "string",
            "createdAt": "string",
            "creator": "string",
            "environment": {
              "allowEdgeRegistration": true,
              "applications": [
                {}
              ],
              "cluster": {
                "agentAddr": "string",
                "apiserver": "string",
                "clientCertExpireAt": "string",
                "clusterName": "string",
                "clusterResourceQuota": [
                  0
                ],
                "defaultStorageClass": "string",
                "deletedAt": {
                  "time": "string",
                  "valid": true
                },
                "environments": [
                  {}
                ],
                "id": 0,
                "imageRepo": "string",
                "installNamespace": "string",
                "kubeConfig": [
                  0
                ],
                "oversoldConfig": [
                  0
                ],
                "primary": true,
                "runtime": "string",
                "tenantResourceQuotas": [
                  {
                    "cluster": {},
                    "clusterID": 0,
                    "content": [
                      0
                    ],
                    "id": 0,
                    "tenant": {},
                    "tenantID": 0,
                    "tenantResourceQuotaApply": {
                      "content": [
                        0
                      ],
                      "id": 0,
                      "status": "string",
                      "updatedAt": "string",
                      "username": "string"
                    },
                    "tenantResourceQuotaApplyID": 0
                  }
                ],
                "vendor": "selfhosted",
                "version": "string"
              },
              "clusterID": 0,
              "creator": {
                "createdAt": "string",
                "email": "string",
                "id": 0,
                "isActive": true,
                "lastLoginAt": "string",
                "phone": "string",
                "role": "string",
                "source": "string",
                "sourceVendor": "string",
                "systemRole": {
                  "id": 0,
                  "roleCode": "string",
                  "roleName": "string",
                  "users": [
                    {}
                  ]
                },
                "systemRoleID": 0,
                "tenants": [
                  {}
                ],
                "username": "string"
              },
              "creatorID": 0,
              "deletePolicy": "string",
              "environmentName": "string",
              "id": 0,
              "limitRange": [
                0
              ],
              "metaType": "string",
              "namespace": "string",
              "nslabels": {
                "property1": "string",
                "property2": "string"
              },
              "project": {},
              "projectID": 0,
              "remark": "string",
              "resourceQuota": [
                0
              ],
              "users": [
                {
                  "createdAt": "string",
                  "email": "string",
                  "id": 0,
                  "isActive": true,
                  "lastLoginAt": "string",
                  "phone": "string",
                  "role": "string",
                  "source": "string",
                  "sourceVendor": "string",
                  "systemRole": {
                    "id": 0,
                    "roleCode": "string",
                    "roleName": "string",
                    "users": [
                      {}
                    ]
                  },
                  "systemRoleID": 0,
                  "tenants": [
                    {}
                  ],
                  "username": "string"
                }
              ],
              "virtualSpace": {
                "createdAt": "string",
                "createdBy": "string",
                "environments": [
                  {}
                ],
                "id": 0,
                "isActive": true,
                "updatedAt": "string",
                "users": [
                  {
                    "createdAt": "string",
                    "email": "string",
                    "id": 0,
                    "isActive": true,
                    "lastLoginAt": "string",
                    "phone": "string",
                    "role": "string",
                    "source": "string",
                    "sourceVendor": "string",
                    "systemRole": {
                      "id": 0,
                      "roleCode": "string",
                      "roleName": "string",
                      "users": [
                        {}
                      ]
                    },
                    "systemRoleID": 0,
                    "tenants": [
                      {}
                    ],
                    "username": "string"
                  }
                ],
                "virtualSpaceName": "string"
              },
              "virtualSpaceID": 0
            },
            "environmentID": 0,
            "id": 0,
            "images": [
              0
            ],
            "kind": "string",
            "labels": [
              0
            ],
            "project": {},
            "projectID": 0,
            "remark": "string"
          }
        ],
        "createdAt": "string",
        "environments": [
          {
            "allowEdgeRegistration": true,
            "applications": [
              {
                "applicationName": "string",
                "createdAt": "string",
                "creator": "string",
                "environment": {},
                "environmentID": 0,
                "id": 0,
                "images": [
                  0
                ],
                "kind": "string",
                "labels": [
                  0
                ],
                "project": {},
                "projectID": 0,
                "remark": "string"
              }
            ],
            "cluster": {
              "agentAddr": "string",
              "apiserver": "string",
              "clientCertExpireAt": "string",
              "clusterName": "string",
              "clusterResourceQuota": [
                0
              ],
              "defaultStorageClass": "string",
              "deletedAt": {
                "time": "string",
                "valid": true
              },
              "environments": [
                {}
              ],
              "id": 0,
              "imageRepo": "string",
              "installNamespace": "string",
              "kubeConfig": [
                0
              ],
              "oversoldConfig": [
                0
              ],
              "primary": true,
              "runtime": "string",
              "tenantResourceQuotas": [
                {
                  "cluster": {},
                  "clusterID": 0,
                  "content": [
                    0
                  ],
                  "id": 0,
                  "tenant": {},
                  "tenantID": 0,
                  "tenantResourceQuotaApply": {
                    "content": [
                      0
                    ],
                    "id": 0,
                    "status": "string",
                    "updatedAt": "string",
                    "username": "string"
                  },
                  "tenantResourceQuotaApplyID": 0
                }
              ],
              "vendor": "selfhosted",
              "version": "string"
            },
            "clusterID": 0,
            "creator": {
              "createdAt": "string",
              "email": "string",
              "id": 0,
              "isActive": true,
              "lastLoginAt": "string",
              "phone": "string",
              "role": "string",
              "source": "string",
              "sourceVendor": "string",
              "systemRole": {
                "id": 0,
                "roleCode": "string",
                "roleName": "string",
                "users": [
                  {}
                ]
              },
              "systemRoleID": 0,
              "tenants": [
                {}
              ],
              "username": "string"
            },
            "creatorID": 0,
            "deletePolicy": "string",
            "environmentName": "string",
            "id": 0,
            "limitRange": [
              0
            ],
            "metaType": "string",
            "namespace": "string",
            "nslabels": {
              "property1": "string",
              "property2": "string"
            },
            "project": {},
            "projectID": 0,
            "remark": "string",
            "resourceQuota": [
              0
            ],
            "users": [
              {
                "createdAt": "string",
                "email": "string",
                "id": 0,
                "isActive": true,
                "lastLoginAt": "string",
                "phone": "string",
                "role": "string",
                "source": "string",
                "sourceVendor": "string",
                "systemRole": {
                  "id": 0,
                  "roleCode": "string",
                  "roleName": "string",
                  "users": [
                    {}
                  ]
                },
                "systemRoleID": 0,
                "tenants": [
                  {}
                ],
                "username": "string"
              }
            ],
            "virtualSpace": {
              "createdAt": "string",
              "createdBy": "string",
              "environments": [
                {}
              ],
              "id": 0,
              "isActive": true,
              "updatedAt": "string",
              "users": [
                {
                  "createdAt": "string",
                  "email": "string",
                  "id": 0,
                  "isActive": true,
                  "lastLoginAt": "string",
                  "phone": "string",
                  "role": "string",
                  "source": "string",
                  "sourceVendor": "string",
                  "systemRole": {
                    "id": 0,
                    "roleCode": "string",
                    "roleName": "string",
                    "users": [
                      {}
                    ]
                  },
                  "systemRoleID": 0,
                  "tenants": [
                    {}
                  ],
                  "username": "string"
                }
              ],
              "virtualSpaceName": "string"
            },
            "virtualSpaceID": 0
          }
        ],
        "id": 0,
        "projectAlias": "string",
        "projectName": "string",
        "registries": [
          {
            "creator": {
              "createdAt": "string",
              "email": "string",
              "id": 0,
              "isActive": true,
              "lastLoginAt": "string",
              "phone": "string",
              "role": "string",
              "source": "string",
              "sourceVendor": "string",
              "systemRole": {
                "id": 0,
                "roleCode": "string",
                "roleName": "string",
                "users": [
                  {}
                ]
              },
              "systemRoleID": 0,
              "tenants": [
                {}
              ],
              "username": "string"
            },
            "creatorID": 0,
            "enableExtends": true,
            "id": 0,
            "isDefault": true,
            "password": "string",
            "project": {},
            "projectID": 0,
            "registryAddress": "string",
            "registryName": "string",
            "updateTime": "string",
            "username": "string"
          }
        ],
        "remark": "string",
        "resourceQuota": [
          0
        ],
        "tenant": {},
        "tenantID": 0,
        "users": [
          {
            "createdAt": "string",
            "email": "string",
            "id": 0,
            "isActive": true,
            "lastLoginAt": "string",
            "phone": "string",
            "role": "string",
            "source": "string",
            "sourceVendor": "string",
            "systemRole": {
              "id": 0,
              "roleCode": "string",
              "roleName": "string",
              "users": [
                {}
              ]
            },
            "systemRoleID": 0,
            "tenants": [
              {}
            ],
            "username": "string"
          }
        ]
      }
    ],
    "remark": "string",
    "resourceQuotas": [
      {
        "cluster": {
          "agentAddr": "string",
          "apiserver": "string",
          "clientCertExpireAt": "string",
          "clusterName": "string",
          "clusterResourceQuota": [
            0
          ],
          "defaultStorageClass": "string",
          "deletedAt": {
            "time": "string",
            "valid": true
          },
          "environments": [
            {
              "allowEdgeRegistration": true,
              "applications": [
                {
                  "applicationName": "string",
                  "createdAt": "string",
                  "creator": "string",
                  "environment": {},
                  "environmentID": 0,
                  "id": 0,
                  "images": [
                    0
                  ],
                  "kind": "string",
                  "labels": [
                    0
                  ],
                  "project": {
                    "applications": [
                      {}
                    ],
                    "createdAt": "string",
                    "environments": [
                      {}
                    ],
                    "id": 0,
                    "projectAlias": "string",
                    "projectName": "string",
                    "registries": [
                      {
                        "creator": {
                          "createdAt": "string",
                          "email": "string",
                          "id": 0,
                          "isActive": true,
                          "lastLoginAt": "string",
                          "phone": "string",
                          "role": "string",
                          "source": "string",
                          "sourceVendor": "string",
                          "systemRole": {
                            "id": 0,
                            "roleCode": "string",
                            "roleName": "string",
                            "users": [
                              null
                            ]
                          },
                          "systemRoleID": 0,
                          "tenants": [
                            {}
                          ],
                          "username": "string"
                        },
                        "creatorID": 0,
                        "enableExtends": true,
                        "id": 0,
                        "isDefault": true,
                        "password": "string",
                        "project": {},
                        "projectID": 0,
                        "registryAddress": "string",
                        "registryName": "string",
                        "updateTime": "string",
                        "username": "string"
                      }
                    ],
                    "remark": "string",
                    "resourceQuota": [
                      0
                    ],
                    "tenant": {},
                    "tenantID": 0,
                    "users": [
                      {
                        "createdAt": "string",
                        "email": "string",
                        "id": 0,
                        "isActive": true,
                        "lastLoginAt": "string",
                        "phone": "string",
                        "role": "string",
                        "source": "string",
                        "sourceVendor": "string",
                        "systemRole": {
                          "id": 0,
                          "roleCode": "string",
                          "roleName": "string",
                          "users": [
                            {}
                          ]
                        },
                        "systemRoleID": 0,
                        "tenants": [
                          {}
                        ],
                        "username": "string"
                      }
                    ]
                  },
                  "projectID": 0,
                  "remark": "string"
                }
              ],
              "cluster": {},
              "clusterID": 0,
              "creator": {
                "createdAt": "string",
                "email": "string",
                "id": 0,
                "isActive": true,
                "lastLoginAt": "string",
                "phone": "string",
                "role": "string",
                "source": "string",
                "sourceVendor": "string",
                "systemRole": {
                  "id": 0,
                  "roleCode": "string",
                  "roleName": "string",
                  "users": [
                    {}
                  ]
                },
                "systemRoleID": 0,
                "tenants": [
                  {}
                ],
                "username": "string"
              },
              "creatorID": 0,
              "deletePolicy": "string",
              "environmentName": "string",
              "id": 0,
              "limitRange": [
                0
              ],
              "metaType": "string",
              "namespace": "string",
              "nslabels": {
                "property1": "string",
                "property2": "string"
              },
              "project": {
                "applications": [
                  {
                    "applicationName": "string",
                    "createdAt": "string",
                    "creator": "string",
                    "environment": {},
                    "environmentID": 0,
                    "id": 0,
                    "images": [
                      0
                    ],
                    "kind": "string",
                    "labels": [
                      0
                    ],
                    "project": {},
                    "projectID": 0,
                    "remark": "string"
                  }
                ],
                "createdAt": "string",
                "environments": [
                  {}
                ],
                "id": 0,
                "projectAlias": "string",
                "projectName": "string",
                "registries": [
                  {
                    "creator": {
                      "createdAt": "string",
                      "email": "string",
                      "id": 0,
                      "isActive": true,
                      "lastLoginAt": "string",
                      "phone": "string",
                      "role": "string",
                      "source": "string",
                      "sourceVendor": "string",
                      "systemRole": {
                        "id": 0,
                        "roleCode": "string",
                        "roleName": "string",
                        "users": [
                          {}
                        ]
                      },
                      "systemRoleID": 0,
                      "tenants": [
                        {}
                      ],
                      "username": "string"
                    },
                    "creatorID": 0,
                    "enableExtends": true,
                    "id": 0,
                    "isDefault": true,
                    "password": "string",
                    "project": {},
                    "projectID": 0,
                    "registryAddress": "string",
                    "registryName": "string",
                    "updateTime": "string",
                    "username": "string"
                  }
                ],
                "remark": "string",
                "resourceQuota": [
                  0
                ],
                "tenant": {},
                "tenantID": 0,
                "users": [
                  {
                    "createdAt": "string",
                    "email": "string",
                    "id": 0,
                    "isActive": true,
                    "lastLoginAt": "string",
                    "phone": "string",
                    "role": "string",
                    "source": "string",
                    "sourceVendor": "string",
                    "systemRole": {
                      "id": 0,
                      "roleCode": "string",
                      "roleName": "string",
                      "users": [
                        {}
                      ]
                    },
                    "systemRoleID": 0,
                    "tenants": [
                      {}
                    ],
                    "username": "string"
                  }
                ]
              },
              "projectID": 0,
              "remark": "string",
              "resourceQuota": [
                0
              ],
              "users": [
                {
                  "createdAt": "string",
                  "email": "string",
                  "id": 0,
                  "isActive": true,
                  "lastLoginAt": "string",
                  "phone": "string",
                  "role": "string",
                  "source": "string",
                  "sourceVendor": "string",
                  "systemRole": {
                    "id": 0,
                    "roleCode": "string",
                    "roleName": "string",
                    "users": [
                      {}
                    ]
                  },
                  "systemRoleID": 0,
                  "tenants": [
                    {}
                  ],
                  "username": "string"
                }
              ],
              "virtualSpace": {
                "createdAt": "string",
                "createdBy": "string",
                "environments": [
                  {}
                ],
                "id": 0,
                "isActive": true,
                "updatedAt": "string",
                "users": [
                  {
                    "createdAt": "string",
                    "email": "string",
                    "id": 0,
                    "isActive": true,
                    "lastLoginAt": "string",
                    "phone": "string",
                    "role": "string",
                    "source": "string",
                    "sourceVendor": "string",
                    "systemRole": {
                      "id": 0,
                      "roleCode": "string",
                      "roleName": "string",
                      "users": [
                        {}
                      ]
                    },
                    "systemRoleID": 0,
                    "tenants": [
                      {}
                    ],
                    "username": "string"
                  }
                ],
                "virtualSpaceName": "string"
              },
              "virtualSpaceID": 0
            }
          ],
          "id": 0,
          "imageRepo": "string",
          "installNamespace": "string",
          "kubeConfig": [
            0
          ],
          "oversoldConfig": [
            0
          ],
          "primary": true,
          "runtime": "string",
          "tenantResourceQuotas": [
            {}
          ],
          "vendor": "selfhosted",
          "version": "string"
        },
        "clusterID": 0,
        "content": [
          0
        ],
        "id": 0,
        "tenant": {},
        "tenantID": 0,
        "tenantResourceQuotaApply": {
          "content": [
            0
          ],
          "id": 0,
          "status": "string",
          "updatedAt": "string",
          "username": "string"
        },
        "tenantResourceQuotaApplyID": 0
      }
    ],
    "tenantName": "string",
    "updatedAt": "string",
    "users": [
      {
        "createdAt": "string",
        "email": "string",
        "id": 0,
        "isActive": true,
        "lastLoginAt": "string",
        "phone": "string",
        "role": "string",
        "source": "string",
        "sourceVendor": "string",
        "systemRole": {
          "id": 0,
          "roleCode": "string",
          "roleName": "string",
          "users": [
            {}
          ]
        },
        "systemRoleID": 0,
        "tenants": [
          {}
        ],
        "username": "string"
      }
    ]
  },
  "tenantID": 0
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/v1/observability/tenant//channels/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "channelConfig": {
        "ChannelIf": null
    },
    "id": 0,
    "name": "string",
    "tenant": {
        "allocatedResourcequota": {
            "property1": {
                "Format": "string"
            },
            "property2": {
                "Format": "string"
            }
        },
        "createdAt": "string",
        "id": 0,
        "isActive": true,
        "projects": [
            {
                "applications": [
                    {
                        "applicationName": "string",
                        "createdAt": "string",
                        "creator": "string",
                        "environment": {
                            "allowEdgeRegistration": true,
                            "applications": [
                                {}
                            ],
                            "cluster": {
                                "agentAddr": "string",
                                "apiserver": "string",
                                "clientCertExpireAt": "string",
                                "clusterName": "string",
                                "clusterResourceQuota": [
                                    0
                                ],
                                "defaultStorageClass": "string",
                                "deletedAt": {
                                    "time": "string",
                                    "valid": true
                                },
                                "environments": [
                                    {}
                                ],
                                "id": 0,
                                "imageRepo": "string",
                                "installNamespace": "string",
                                "kubeConfig": [
                                    0
                                ],
                                "oversoldConfig": [
                                    0
                                ],
                                "primary": true,
                                "runtime": "string",
                                "tenantResourceQuotas": [
                                    {
                                        "cluster": {},
                                        "clusterID": 0,
                                        "content": [
                                            0
                                        ],
                                        "id": 0,
                                        "tenant": {},
                                        "tenantID": 0,
                                        "tenantResourceQuotaApply": {
                                            "content": [
                                                0
                                            ],
                                            "id": 0,
                                            "status": "string",
                                            "updatedAt": "string",
                                            "username": "string"
                                        },
                                        "tenantResourceQuotaApplyID": 0
                                    }
                                ],
                                "vendor": "selfhosted",
                                "version": "string"
                            },
                            "clusterID": 0,
                            "creator": {
                                "createdAt": "string",
                                "email": "string",
                                "id": 0,
                                "isActive": true,
                                "lastLoginAt": "string",
                                "phone": "string",
                                "role": "string",
                                "source": "string",
                                "sourceVendor": "string",
                                "systemRole": {
                                    "id": 0,
                                    "roleCode": "string",
                                    "roleName": "string",
                                    "users": [
                                        {}
                                    ]
                                },
                                "systemRoleID": 0,
                                "tenants": [
                                    {}
                                ],
                                "username": "string"
                            },
                            "creatorID": 0,
                            "deletePolicy": "string",
                            "environmentName": "string",
                            "id": 0,
                            "limitRange": [
                                0
                            ],
                            "metaType": "string",
                            "namespace": "string",
                            "nslabels": {
                                "property1": "string",
                                "property2": "string"
                            },
                            "project": {},
                            "projectID": 0,
                            "remark": "string",
                            "resourceQuota": [
                                0
                            ],
                            "users": [
                                {
                                    "createdAt": "string",
                                    "email": "string",
                                    "id": 0,
                                    "isActive": true,
                                    "lastLoginAt": "string",
                                    "phone": "string",
                                    "role": "string",
                                    "source": "string",
                                    "sourceVendor": "string",
                                    "systemRole": {
                                        "id": 0,
                                        "roleCode": "string",
                                        "roleName": "string",
                                        "users": [
                                            {}
                                        ]
                                    },
                                    "systemRoleID": 0,
                                    "tenants": [
                                        {}
                                    ],
                                    "username": "string"
                                }
                            ],
                            "virtualSpace": {
                                "createdAt": "string",
                                "createdBy": "string",
                                "environments": [
                                    {}
                                ],
                                "id": 0,
                                "isActive": true,
                                "updatedAt": "string",
                                "users": [
                                    {
                                        "createdAt": "string",
                                        "email": "string",
                                        "id": 0,
                                        "isActive": true,
                                        "lastLoginAt": "string",
                                        "phone": "string",
                                        "role": "string",
                                        "source": "string",
                                        "sourceVendor": "string",
                                        "systemRole": {
                                            "id": 0,
                                            "roleCode": "string",
                                            "roleName": "string",
                                            "users": [
                                                {}
                                            ]
                                        },
                                        "systemRoleID": 0,
                                        "tenants": [
                                            {}
                                        ],
                                        "username": "string"
                                    }
                                ],
                                "virtualSpaceName": "string"
                            },
                            "virtualSpaceID": 0
                        },
                        "environmentID": 0,
                        "id": 0,
                        "images": [
                            0
                        ],
                        "kind": "string",
                        "labels": [
                            0
                        ],
                        "project": {},
                        "projectID": 0,
                        "remark": "string"
                    }
                ],
                "createdAt": "string",
                "environments": [
                    {
                        "allowEdgeRegistration": true,
                        "applications": [
                            {
                                "applicationName": "string",
                                "createdAt": "string",
                                "creator": "string",
                                "environment": {},
                                "environmentID": 0,
                                "id": 0,
                                "images": [
                                    0
                                ],
                                "kind": "string",
                                "labels": [
                                    0
                                ],
                                "project": {},
                                "projectID": 0,
                                "remark": "string"
                            }
                        ],
                        "cluster": {
                            "agentAddr": "string",
                            "apiserver": "string",
                            "clientCertExpireAt": "string",
                            "clusterName": "string",
                            "clusterResourceQuota": [
                                0
                            ],
                            "defaultStorageClass": "string",
                            "deletedAt": {
                                "time": "string",
                                "valid": true
                            },
                            "environments": [
                                {}
                            ],
                            "id": 0,
                            "imageRepo": "string",
                            "installNamespace": "string",
                            "kubeConfig": [
                                0
                            ],
                            "oversoldConfig": [
                                0
                            ],
                            "primary": true,
                            "runtime": "string",
                            "tenantResourceQuotas": [
                                {
                                    "cluster": {},
                                    "clusterID": 0,
                                    "content": [
                                        0
                                    ],
                                    "id": 0,
                                    "tenant": {},
                                    "tenantID": 0,
                                    "tenantResourceQuotaApply": {
                                        "content": [
                                            0
                                        ],
                                        "id": 0,
                                        "status": "string",
                                        "updatedAt": "string",
                                        "username": "string"
                                    },
                                    "tenantResourceQuotaApplyID": 0
                                }
                            ],
                            "vendor": "selfhosted",
                            "version": "string"
                        },
                        "clusterID": 0,
                        "creator": {
                            "createdAt": "string",
                            "email": "string",
                            "id": 0,
                            "isActive": true,
                            "lastLoginAt": "string",
                            "phone": "string",
                            "role": "string",
                            "source": "string",
                            "sourceVendor": "string",
                            "systemRole": {
                                "id": 0,
                                "roleCode": "string",
                                "roleName": "string",
                                "users": [
                                    {}
                                ]
                            },
                            "systemRoleID": 0,
                            "tenants": [
                                {}
                            ],
                            "username": "string"
                        },
                        "creatorID": 0,
                        "deletePolicy": "string",
                        "environmentName": "string",
                        "id": 0,
                        "limitRange": [
                            0
                        ],
                        "metaType": "string",
                        "namespace": "string",
                        "nslabels": {
                            "property1": "string",
                            "property2": "string"
                        },
                        "project": {},
                        "projectID": 0,
                        "remark": "string",
                        "resourceQuota": [
                            0
                        ],
                        "users": [
                            {
                                "createdAt": "string",
                                "email": "string",
                                "id": 0,
                                "isActive": true,
                                "lastLoginAt": "string",
                                "phone": "string",
                                "role": "string",
                                "source": "string",
                                "sourceVendor": "string",
                                "systemRole": {
                                    "id": 0,
                                    "roleCode": "string",
                                    "roleName": "string",
                                    "users": [
                                        {}
                                    ]
                                },
                                "systemRoleID": 0,
                                "tenants": [
                                    {}
                                ],
                                "username": "string"
                            }
                        ],
                        "virtualSpace": {
                            "createdAt": "string",
                            "createdBy": "string",
                            "environments": [
                                {}
                            ],
                            "id": 0,
                            "isActive": true,
                            "updatedAt": "string",
                            "users": [
                                {
                                    "createdAt": "string",
                                    "email": "string",
                                    "id": 0,
                                    "isActive": true,
                                    "lastLoginAt": "string",
                                    "phone": "string",
                                    "role": "string",
                                    "source": "string",
                                    "sourceVendor": "string",
                                    "systemRole": {
                                        "id": 0,
                                        "roleCode": "string",
                                        "roleName": "string",
                                        "users": [
                                            {}
                                        ]
                                    },
                                    "systemRoleID": 0,
                                    "tenants": [
                                        {}
                                    ],
                                    "username": "string"
                                }
                            ],
                            "virtualSpaceName": "string"
                        },
                        "virtualSpaceID": 0
                    }
                ],
                "id": 0,
                "projectAlias": "string",
                "projectName": "string",
                "registries": [
                    {
                        "creator": {
                            "createdAt": "string",
                            "email": "string",
                            "id": 0,
                            "isActive": true,
                            "lastLoginAt": "string",
                            "phone": "string",
                            "role": "string",
                            "source": "string",
                            "sourceVendor": "string",
                            "systemRole": {
                                "id": 0,
                                "roleCode": "string",
                                "roleName": "string",
                                "users": [
                                    {}
                                ]
                            },
                            "systemRoleID": 0,
                            "tenants": [
                                {}
                            ],
                            "username": "string"
                        },
                        "creatorID": 0,
                        "enableExtends": true,
                        "id": 0,
                        "isDefault": true,
                        "password": "string",
                        "project": {},
                        "projectID": 0,
                        "registryAddress": "string",
                        "registryName": "string",
                        "updateTime": "string",
                        "username": "string"
                    }
                ],
                "remark": "string",
                "resourceQuota": [
                    0
                ],
                "tenant": {},
                "tenantID": 0,
                "users": [
                    {
                        "createdAt": "string",
                        "email": "string",
                        "id": 0,
                        "isActive": true,
                        "lastLoginAt": "string",
                        "phone": "string",
                        "role": "string",
                        "source": "string",
                        "sourceVendor": "string",
                        "systemRole": {
                            "id": 0,
                            "roleCode": "string",
                            "roleName": "string",
                            "users": [
                                {}
                            ]
                        },
                        "systemRoleID": 0,
                        "tenants": [
                            {}
                        ],
                        "username": "string"
                    }
                ]
            }
        ],
        "remark": "string",
        "resourceQuotas": [
            {
                "cluster": {
                    "agentAddr": "string",
                    "apiserver": "string",
                    "clientCertExpireAt": "string",
                    "clusterName": "string",
                    "clusterResourceQuota": [
                        0
                    ],
                    "defaultStorageClass": "string",
                    "deletedAt": {
                        "time": "string",
                        "valid": true
                    },
                    "environments": [
                        {
                            "allowEdgeRegistration": true,
                            "applications": [
                                {
                                    "applicationName": "string",
                                    "createdAt": "string",
                                    "creator": "string",
                                    "environment": {},
                                    "environmentID": 0,
                                    "id": 0,
                                    "images": [
                                        0
                                    ],
                                    "kind": "string",
                                    "labels": [
                                        0
                                    ],
                                    "project": {
                                        "applications": [
                                            {}
                                        ],
                                        "createdAt": "string",
                                        "environments": [
                                            {}
                                        ],
                                        "id": 0,
                                        "projectAlias": "string",
                                        "projectName": "string",
                                        "registries": [
                                            {
                                                "creator": {
                                                    "createdAt": "string",
                                                    "email": "string",
                                                    "id": 0,
                                                    "isActive": true,
                                                    "lastLoginAt": "string",
                                                    "phone": "string",
                                                    "role": "string",
                                                    "source": "string",
                                                    "sourceVendor": "string",
                                                    "systemRole": {
                                                        "id": 0,
                                                        "roleCode": "string",
                                                        "roleName": "string",
                                                        "users": [
                                                            null
                                                        ]
                                                    },
                                                    "systemRoleID": 0,
                                                    "tenants": [
                                                        {}
                                                    ],
                                                    "username": "string"
                                                },
                                                "creatorID": 0,
                                                "enableExtends": true,
                                                "id": 0,
                                                "isDefault": true,
                                                "password": "string",
                                                "project": {},
                                                "projectID": 0,
                                                "registryAddress": "string",
                                                "registryName": "string",
                                                "updateTime": "string",
                                                "username": "string"
                                            }
                                        ],
                                        "remark": "string",
                                        "resourceQuota": [
                                            0
                                        ],
                                        "tenant": {},
                                        "tenantID": 0,
                                        "users": [
                                            {
                                                "createdAt": "string",
                                                "email": "string",
                                                "id": 0,
                                                "isActive": true,
                                                "lastLoginAt": "string",
                                                "phone": "string",
                                                "role": "string",
                                                "source": "string",
                                                "sourceVendor": "string",
                                                "systemRole": {
                                                    "id": 0,
                                                    "roleCode": "string",
                                                    "roleName": "string",
                                                    "users": [
                                                        {}
                                                    ]
                                                },
                                                "systemRoleID": 0,
                                                "tenants": [
                                                    {}
                                                ],
                                                "username": "string"
                                            }
                                        ]
                                    },
                                    "projectID": 0,
                                    "remark": "string"
                                }
                            ],
                            "cluster": {},
                            "clusterID": 0,
                            "creator": {
                                "createdAt": "string",
                                "email": "string",
                                "id": 0,
                                "isActive": true,
                                "lastLoginAt": "string",
                                "phone": "string",
                                "role": "string",
                                "source": "string",
                                "sourceVendor": "string",
                                "systemRole": {
                                    "id": 0,
                                    "roleCode": "string",
                                    "roleName": "string",
                                    "users": [
                                        {}
                                    ]
                                },
                                "systemRoleID": 0,
                                "tenants": [
                                    {}
                                ],
                                "username": "string"
                            },
                            "creatorID": 0,
                            "deletePolicy": "string",
                            "environmentName": "string",
                            "id": 0,
                            "limitRange": [
                                0
                            ],
                            "metaType": "string",
                            "namespace": "string",
                            "nslabels": {
                                "property1": "string",
                                "property2": "string"
                            },
                            "project": {
                                "applications": [
                                    {
                                        "applicationName": "string",
                                        "createdAt": "string",
                                        "creator": "string",
                                        "environment": {},
                                        "environmentID": 0,
                                        "id": 0,
                                        "images": [
                                            0
                                        ],
                                        "kind": "string",
                                        "labels": [
                                            0
                                        ],
                                        "project": {},
                                        "projectID": 0,
                                        "remark": "string"
                                    }
                                ],
                                "createdAt": "string",
                                "environments": [
                                    {}
                                ],
                                "id": 0,
                                "projectAlias": "string",
                                "projectName": "string",
                                "registries": [
                                    {
                                        "creator": {
                                            "createdAt": "string",
                                            "email": "string",
                                            "id": 0,
                                            "isActive": true,
                                            "lastLoginAt": "string",
                                            "phone": "string",
                                            "role": "string",
                                            "source": "string",
                                            "sourceVendor": "string",
                                            "systemRole": {
                                                "id": 0,
                                                "roleCode": "string",
                                                "roleName": "string",
                                                "users": [
                                                    {}
                                                ]
                                            },
                                            "systemRoleID": 0,
                                            "tenants": [
                                                {}
                                            ],
                                            "username": "string"
                                        },
                                        "creatorID": 0,
                                        "enableExtends": true,
                                        "id": 0,
                                        "isDefault": true,
                                        "password": "string",
                                        "project": {},
                                        "projectID": 0,
                                        "registryAddress": "string",
                                        "registryName": "string",
                                        "updateTime": "string",
                                        "username": "string"
                                    }
                                ],
                                "remark": "string",
                                "resourceQuota": [
                                    0
                                ],
                                "tenant": {},
                                "tenantID": 0,
                                "users": [
                                    {
                                        "createdAt": "string",
                                        "email": "string",
                                        "id": 0,
                                        "isActive": true,
                                        "lastLoginAt": "string",
                                        "phone": "string",
                                        "role": "string",
                                        "source": "string",
                                        "sourceVendor": "string",
                                        "systemRole": {
                                            "id": 0,
                                            "roleCode": "string",
                                            "roleName": "string",
                                            "users": [
                                                {}
                                            ]
                                        },
                                        "systemRoleID": 0,
                                        "tenants": [
                                            {}
                                        ],
                                        "username": "string"
                                    }
                                ]
                            },
                            "projectID": 0,
                            "remark": "string",
                            "resourceQuota": [
                                0
                            ],
                            "users": [
                                {
                                    "createdAt": "string",
                                    "email": "string",
                                    "id": 0,
                                    "isActive": true,
                                    "lastLoginAt": "string",
                                    "phone": "string",
                                    "role": "string",
                                    "source": "string",
                                    "sourceVendor": "string",
                                    "systemRole": {
                                        "id": 0,
                                        "roleCode": "string",
                                        "roleName": "string",
                                        "users": [
                                            {}
                                        ]
                                    },
                                    "systemRoleID": 0,
                                    "tenants": [
                                        {}
                                    ],
                                    "username": "string"
                                }
                            ],
                            "virtualSpace": {
                                "createdAt": "string",
                                "createdBy": "string",
                                "environments": [
                                    {}
                                ],
                                "id": 0,
                                "isActive": true,
                                "updatedAt": "string",
                                "users": [
                                    {
                                        "createdAt": "string",
                                        "email": "string",
                                        "id": 0,
                                        "isActive": true,
                                        "lastLoginAt": "string",
                                        "phone": "string",
                                        "role": "string",
                                        "source": "string",
                                        "sourceVendor": "string",
                                        "systemRole": {
                                            "id": 0,
                                            "roleCode": "string",
                                            "roleName": "string",
                                            "users": [
                                                {}
                                            ]
                                        },
                                        "systemRoleID": 0,
                                        "tenants": [
                                            {}
                                        ],
                                        "username": "string"
                                    }
                                ],
                                "virtualSpaceName": "string"
                            },
                            "virtualSpaceID": 0
                        }
                    ],
                    "id": 0,
                    "imageRepo": "string",
                    "installNamespace": "string",
                    "kubeConfig": [
                        0
                    ],
                    "oversoldConfig": [
                        0
                    ],
                    "primary": true,
                    "runtime": "string",
                    "tenantResourceQuotas": [
                        {}
                    ],
                    "vendor": "selfhosted",
                    "version": "string"
                },
                "clusterID": 0,
                "content": [
                    0
                ],
                "id": 0,
                "tenant": {},
                "tenantID": 0,
                "tenantResourceQuotaApply": {
                    "content": [
                        0
                    ],
                    "id": 0,
                    "status": "string",
                    "updatedAt": "string",
                    "username": "string"
                },
                "tenantResourceQuotaApplyID": 0
            }
        ],
        "tenantName": "string",
        "updatedAt": "string",
        "users": [
            {
                "createdAt": "string",
                "email": "string",
                "id": 0,
                "isActive": true,
                "lastLoginAt": "string",
                "phone": "string",
                "role": "string",
                "source": "string",
                "sourceVendor": "string",
                "systemRole": {
                    "id": 0,
                    "roleCode": "string",
                    "roleName": "string",
                    "users": [
                        {}
                    ]
                },
                "systemRoleID": 0,
                "tenants": [
                    {}
                ],
                "username": "string"
            }
        ]
    },
    "tenantID": 0
}'

返回响应

🟢200告警规则-更新状态的map
application/json
Body
allOf {2} 
可选
object (handlers.ResponseStruct) 
可选
data
可选
errorData
可选
message
string 
可选
object 
可选
Data
object 
可选
示例
{
  "data": null,
  "errorData": null,
  "message": "string",
  "Data": {
    "property1": true,
    "property2": true
  }
}
修改于 2023-08-01 06:43:45
上一页
渠道列表详情
下一页
删除告警渠道
Built with