import * as $dara from '@darabonba/typescript'; export declare class DescribePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations extends $dara.Model { /** * @remarks * The name of the annotation. * * @example * message */ name?: string; /** * @remarks * The value of the annotation. * * @example * The CPU utilization of ${{$labels.pod_name}} has exceeded 80%. Current value: {{$value}}% */ value?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class DescribePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels extends $dara.Model { /** * @remarks * The name of the tag. * * @example * severity */ name?: string; /** * @remarks * The value of the tag. * * @example * critical */ value?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule extends $dara.Model { /** * @remarks * The ID of the alert rule. * * @example * 3888704 */ alertId?: number; /** * @remarks * The name of the alert rule. * * @example * Prometheus_Alert */ alertName?: string; /** * @remarks * The annotations of the alert rule. */ annotations?: DescribePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations[]; /** * @remarks * The ID of the cluster. * * @example * c0bad479465464e1d8c1e641b0afb**** */ clusterId?: string; /** * @remarks * The ID of the notification policy. This parameter is returned if the **NotifyType** parameter is set to `DISPATCH_RULE`. * * @example * 10282 */ dispatchRuleId?: number; /** * @remarks * The duration of the alert. Valid values: 1 to 1440. Unit: minutes. * * @example * 1m */ duration?: string; /** * @remarks * The expression of the alert rule. * * @example * 100 * (sum(rate(container_cpu_usage_seconds_total[1m])) by (pod_name) / sum(label_replace(kube_pod_container_resource_limits_cpu_cores, \\"pod_name\\", \\"$1\\", \\"pod\\", \\"(.*)\\")) by (pod_name))>75 */ expression?: string; /** * @remarks * The tags of the alert rule. */ labels?: DescribePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels[]; /** * @remarks * The alert message. Tags can be referenced in the {{$labels.xxx}} format. * * @example * The CPU utilization of ${{$labels.pod_name}} has exceeded 80%. Current value: {{$value}}% */ message?: string; /** * @remarks * The method of that is used to send alert notifications. Valid values: * * * `ALERT_MANAGER`: Alert notifications are sent by Operation Center. * * `DISPATCH_RULE`: Alert notifications are sent based on the specified notification policy. * * @example * ALERT_MANAGER */ notifyType?: string; /** * @remarks * Indicates whether the alert rule is enabled. Valid values: * * * `1`: The alert rule is enabled. * * `0`: The alert rule is disabled. * * @example * 1 */ status?: number; /** * @remarks * The type of the alert rule. * * @example * Kubernetes component alert */ type?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class DescribePrometheusAlertRuleResponseBody extends $dara.Model { /** * @remarks * The HTTP status code. The status code 200 indicates that the request was successful. * * @example * 200 */ code?: number; /** * @remarks * The returned message. * * @example * success */ message?: string; /** * @remarks * The returned struct. */ prometheusAlertRule?: DescribePrometheusAlertRuleResponseBodyPrometheusAlertRule; /** * @remarks * The ID of the request. * * @example * 9FEA6D00-317F-45E3-9004-7FB8B0B7**** */ requestId?: string; /** * @remarks * Indicates whether the request was successful. Valid values: * * * true * * false * * @example * True */ success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); }