import * as $dara from '@darabonba/typescript'; export declare class CreatePrometheusAlertRuleRequestTags extends $dara.Model { /** * @remarks * The tag key. * * @example * type */ key?: string; /** * @remarks * The tag value. * * @example * value1 */ value?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class CreatePrometheusAlertRuleRequest extends $dara.Model { /** * @remarks * The name of the alert rule. * * This parameter is required. * * @example * Prometheus_Alert */ alertName?: string; /** * @remarks * The annotations that are described in a JSON string. You must specify the name and value of each annotation. * * @example * [{"Value": "xxx","Name": "description"}] */ annotations?: string; /** * @remarks * The ID of the cluster. * * This parameter is required. * * @example * c0bad479465464e1d8c1e641b0afb**** */ clusterId?: string; /** * @remarks * The ID of the notification policy. This parameter is required if the NotifyType parameter is set to `DISPATCH_RULE`. * * @example * 10282 */ dispatchRuleId?: number; /** * @remarks * The duration. The value ranges from 1 to 1440 minutes. * * This parameter is required. * * @example * 10m */ duration?: string; /** * @remarks * The expression of the alert rule. The expression must follow the PromQL syntax. * * This parameter is required. * * @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 that are described in a JSON string. You must specify the name and value of each tag. * * @example * [{"Value": "critical","Name": "severity"}] */ labels?: string; /** * @remarks * The content of the alert notification. Tags can be referenced in the {{$labels.xxx}} format. * * This parameter is required. * * @example * The CPU utilization of ${{$labels.pod_name}} has exceeded 80%. Current value: {{$value}}% */ message?: string; /** * @remarks * The method that is used to send alert notifications. Valid values: * * - `ALERT_MANAGER`: Alert notifications are sent by Operation Center. This is the default value. * - `DISPATCH_RULE`: Alert notifications are sent based on the specified notification policy. * * @example * ALERT_MANAGER */ notifyType?: string; /** * @remarks * The ID of the region. * * This parameter is required. * * @example * cn-hangzhou */ regionId?: string; /** * @remarks * The tags. */ tags?: CreatePrometheusAlertRuleRequestTags[]; /** * @remarks * The type of the alert rule. Valid values: * * - 99: custom alert * - 101: Prometheus Service alert * * @example * 101 */ type?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); }