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

创建监控告警规则

POST
/v1/observability/cluster/{cluster}/namespaces/{namespace}/monitor/alerts
Observability
创建监控告警规则

请求参数

Path 参数
cluster
string 
cluster
必需
namespace
string 
namespace
必需
Body 参数application/json
alertLevels
array[object (models.AlertLevel) {3}] 
告警级别
可选
compareOp
string 
可选
compareValue
string 
可选
支持表达式, eg. 24 * 60
severity
string 
可选
error, critical
alertType
string 
可选
logging or monitor
cluster
string 
可选
createdAt
string 
可选
expr
string 
可选

promql/logql表达式,不能包含比较运算符(<, <=, >, >=, ==)

for
string 
必需
持续时间, eg. 10s, 1m, 1h
id
integer 
可选
inhibitLabels
array[string]
可选
如果有多个告警级别,需要配置告警抑制的labels
isOpen
boolean 
是否启用
可选
k8sResourceStatus
object (gormdatatypes.JSONMap) 
可选
额外字段
string 
可选
logqlGenerator
object (models.LogqlGenerator) 
可选
duration
string 
时间范围
可选
labelMatchers
array[object (promql.LabelMatcher) {3}] 
标签筛选器
可选
match
string 
正则匹配的字符串
可选
message
string 
告警消息
可选
name
string 
可选
>= 1 字符<= 50 字符
namespace
string 
可选
promqlGenerator
object (models.PromqlGenerator) 
可选
labelMatchers
array[object (promql.LabelMatcher) {3}] 
标签筛选器
可选
resource
string 
可选
告警资源, eg. node、pod
rule
string 
可选
告警规则名, eg. cpuUsage、memoryUsagePercent
scope
string 
scope
可选
unit
string 
单位
可选
realTimeAlerts
array[object (v1.Alert) {5}] 
实时告警
可选
activeAt
string 
可选
annotations
object (model.LabelSet) 
可选
labels
object (model.LabelSet) 
可选
state
string 
可选
value
string 
可选
receivers
array[object (models.AlertReceiver) {5}] 
可选
接收器, 删除alertrule时级联删除
alertChannel
object (models.AlertChannel) 
可选
alertChannelID
integer 
可选
alertRuleID
integer 
可选
id
integer 
可选
interval
string 
可选
state
string 
状态
可选
updatedAt
string 
可选
示例
{
  "alertLevels": [
    {
      "compareOp": "string",
      "compareValue": "string",
      "severity": "string"
    }
  ],
  "alertType": "string",
  "cluster": "string",
  "createdAt": "string",
  "expr": "string",
  "for": "string",
  "id": 0,
  "inhibitLabels": [
    "string"
  ],
  "isOpen": true,
  "k8sResourceStatus": {
    "property1": "string",
    "property2": "string"
  },
  "logqlGenerator": {
    "duration": "string",
    "labelMatchers": [
      {
        "name": "string",
        "type": "string",
        "value": "string"
      }
    ],
    "match": "string"
  },
  "message": "string",
  "name": "string",
  "namespace": "string",
  "promqlGenerator": {
    "labelMatchers": [
      {
        "name": "string",
        "type": "string",
        "value": "string"
      }
    ],
    "resource": "string",
    "rule": "string",
    "scope": "string",
    "unit": "string"
  },
  "realTimeAlerts": [
    {
      "activeAt": "string",
      "annotations": {
        "property1": "string",
        "property2": "string"
      },
      "labels": {
        "property1": "string",
        "property2": "string"
      },
      "state": "string",
      "value": "string"
    }
  ],
  "receivers": [
    {
      "alertChannel": {
        "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": [
                              null
                            ],
                            "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": [
                              null
                            ]
                          },
                          "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": [
                            {}
                          ],
                          "remark": "string",
                          "resourceQuota": [
                            0
                          ],
                          "tenant": {},
                          "tenantID": 0,
                          "users": [
                            {
                              "tenants": []
                            }
                          ]
                        },
                        "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": {
                              "users": []
                            },
                            "systemRoleID": 0,
                            "tenants": [
                              null
                            ],
                            "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": [
                              null
                            ]
                          },
                          "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": [
                              null
                            ]
                          },
                          "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
      },
      "alertChannelID": 0,
      "alertRuleID": 0,
      "id": 0,
      "interval": "string"
    }
  ],
  "state": "string",
  "updatedAt": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/observability/cluster//namespaces//monitor/alerts' \
--header 'Content-Type: application/json' \
--data-raw '{
    "alertLevels": [
        {
            "compareOp": "string",
            "compareValue": "string",
            "severity": "string"
        }
    ],
    "alertType": "string",
    "cluster": "string",
    "createdAt": "string",
    "expr": "string",
    "for": "string",
    "id": 0,
    "inhibitLabels": [
        "string"
    ],
    "isOpen": true,
    "k8sResourceStatus": {
        "property1": "string",
        "property2": "string"
    },
    "logqlGenerator": {
        "duration": "string",
        "labelMatchers": [
            {
                "name": "string",
                "type": "string",
                "value": "string"
            }
        ],
        "match": "string"
    },
    "message": "string",
    "name": "string",
    "namespace": "string",
    "promqlGenerator": {
        "labelMatchers": [
            {
                "name": "string",
                "type": "string",
                "value": "string"
            }
        ],
        "resource": "string",
        "rule": "string",
        "scope": "string",
        "unit": "string"
    },
    "realTimeAlerts": [
        {
            "activeAt": "string",
            "annotations": {
                "property1": "string",
                "property2": "string"
            },
            "labels": {
                "property1": "string",
                "property2": "string"
            },
            "state": "string",
            "value": "string"
        }
    ],
    "receivers": [
        {
            "alertChannel": {
                "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": [
                                                            null
                                                        ],
                                                        "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": [
                                                            null
                                                        ]
                                                    },
                                                    "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": [
                                                        {}
                                                    ],
                                                    "remark": "string",
                                                    "resourceQuota": [
                                                        0
                                                    ],
                                                    "tenant": {},
                                                    "tenantID": 0,
                                                    "users": [
                                                        {
                                                            "tenants": []
                                                        }
                                                    ]
                                                },
                                                "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": {
                                                            "users": []
                                                        },
                                                        "systemRoleID": 0,
                                                        "tenants": [
                                                            null
                                                        ],
                                                        "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": [
                                                            null
                                                        ]
                                                    },
                                                    "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": [
                                                            null
                                                        ]
                                                    },
                                                    "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
            },
            "alertChannelID": 0,
            "alertRuleID": 0,
            "id": 0,
            "interval": "string"
        }
    ],
    "state": "string",
    "updatedAt": "string"
}'

返回响应

🟢200resp
application/json
Body
allOf {2} 
可选
object (handlers.ResponseStruct) 
可选
data
可选
errorData
可选
message
string 
可选
object 
可选
Data
string 
可选
示例
{
  "data": null,
  "errorData": null,
  "message": "string",
  "Data": "string"
}
修改于 2023-08-01 06:43:45
上一页
监控告警规则列表
下一页
监控告警规则状态
Built with