import * as $dara from '@darabonba/typescript'; export declare class UpdateAggTaskGroupRequestTags extends $dara.Model { /** * @remarks * The key of the tag. * * @example * key1 */ key?: string; /** * @remarks * The value of the tag. * * @example * value1 */ value?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class UpdateAggTaskGroupRequest extends $dara.Model { /** * @remarks * The configuration of the aggregation task group. Only the RecordingRuleYaml format is supported. The configuration must meet the format requirements of RecordingRule in open-source Prometheus. * * This parameter is required. * * @example * groups: * - name: "node.rules" * interval: "60s" * rules: * - record: "node_namespace_pod:kube_pod_info:" * expr: "max(label_replace(kube_pod_info{job=\\"kubernetes-pods-kube-state-metrics\\"\\ * }, \\"pod\\", \\"$1\\", \\"pod\\", \\"(.*)\\")) by (node, namespace, pod, cluster)" */ aggTaskGroupConfig?: string; /** * @remarks * The configuration type of the aggregation task group. Default value: RecordingRuleYaml, which is the RecordingRule format of open-source Prometheus. * * @example * RecordingRuleYaml */ aggTaskGroupConfigType?: string; /** * @remarks * The name of the aggregation task group. * * @example * test-group */ aggTaskGroupName?: string; /** * @remarks * The cron expression used when the scheduling mode is set to Cron. For example, 0/1 * * * * indicates that the task is scheduled every 1 minute starting from minute 0. * * @example * 0/1 * * * * */ cronExpr?: string; /** * @remarks * The fixed delay time for scheduling, in seconds. Default value: 30. * * @example * 30 */ delay?: number; /** * @remarks * The description of the aggregation task group. * * @example * desc */ description?: string; /** * @remarks * The timestamp of the scheduling start time, in seconds. * * @example * 1724996015 */ fromTime?: number; /** * @remarks * The maximum number of retries for executing the aggregation task. Default value: 20. * * @example * 20 */ maxRetries?: number; /** * @remarks * The maximum retry time to execute the aggregation node, in seconds. Default value: 600. * * @example * 600 */ maxRunTimeInSeconds?: number; /** * @remarks * The precheck configuration. By default, this parameter is not configured. The input string must be a valid JSON string. * * @example * {"policy":"skip","prometheusId":"xxx","query":"scalar(sum(count_over_time(up{job=\\"_arms/kubelet/cadvisor\\"}[15s])) / 21)","threshold":0.5,"timeout":15,"type":"promql"} */ precheckString?: string; /** * @remarks * The scheduling mode. Valid values: Cron and FixedRate. Default value: FixedRate. * * @example * FixedRate */ scheduleMode?: string; /** * @remarks * The scheduling time expression. Use @s or @m to specify the alignment granularity of the scheduling time window. Default value: @m. * * @example * @m */ scheduleTimeExpr?: string; /** * @remarks * The status of the aggregation task group. Valid values: Running and Stopped. Default value: Running. * * @example * Running */ status?: string; /** * @remarks * The tags of the resource group. */ tags?: UpdateAggTaskGroupRequestTags[]; /** * @remarks * The target Prometheus instance ID of the aggregation node group. * * This parameter is required. * * @example * rw-pq4apob9jm */ targetPrometheusId?: string; /** * @remarks * The timestamp of the scheduling end time, in seconds. A value of 0 indicates that the scheduling does not stop. * * @example * 0 */ toTime?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); }