import * as $dara from '@darabonba/typescript'; import { ActionIntegrationConfig } from "./ActionIntegrationConfig"; import { ArmsIntegrationConfig } from "./ArmsIntegrationConfig"; import { ConditionConfigUnified } from "./ConditionConfigUnified"; import { DatasourceConfigUnified } from "./DatasourceConfigUnified"; import { NotifyConfigUnified } from "./NotifyConfigUnified"; import { ObserveResourceConfig } from "./ObserveResourceConfig"; import { QueryConfigUnified } from "./QueryConfigUnified"; import { AlertRuleRcaConfig } from "./AlertRuleRcaConfig"; import { ScheduleConfigUnified } from "./ScheduleConfigUnified"; export declare class AlertRuleV2 extends $dara.Model { /** * @remarks * The action integration configuration. */ actionIntegrationConfig?: ActionIntegrationConfig; /** * @remarks * The annotations. */ annotations?: { [key: string]: string; }; /** * @remarks * The ARMS integration configuration. */ armsIntegrationConfig?: ArmsIntegrationConfig; /** * @remarks * The business source (read-only, such as managed_service_for_prometheus / umodel / application_insights / cloud_monitoring / sls). * * @example * 示例值 */ bizSource?: string; /** * @remarks * The detection condition configuration aggregate (Prometheus simple / UModel / APM simple / APM composite). */ conditionConfig?: ConditionConfigUnified; /** * @remarks * The content template. * * @example * Alert triggered: ${metricName} current value ${currentValue} exceeds threshold ${threshold} */ contentTemplate?: string; /** * @remarks * The creation time (read-only), in ISO 8601 format. * * @example * 1751595283143 */ createdAt?: string; /** * @remarks * The datasource configuration aggregate (shared by PROMETHEUS / UMODEL / APM in a single object; fields are selected based on the type). */ datasourceConfig?: DatasourceConfigUnified; /** * @remarks * The datasource type (read-only, derived). * * @example * default */ datasourceType?: string; /** * @remarks * The display name. * * @example * CPU resource usage alert 95% */ displayName?: string; /** * @remarks * Specifies whether the alert rule is enabled. * * @example * true */ enabled?: boolean; /** * @remarks * The labels. */ labels?: { [key: string]: string; }; /** * @remarks * The rule manager (read-only). An empty value indicates a user-created rule. A non-empty value indicates that the rule was created and managed by the corresponding cloud service. * * @example * integrationCenter */ managedBy?: string; /** * @remarks * The notification configuration aggregate (currently only DIRECT_NOTIFY, corresponding to DirectNotifyConfig). */ notifyConfig?: NotifyConfigUnified; /** * @remarks * The notification policy ID (read-only, derived from the first entry in the notification policy list). * * @example * example-id-001 */ notifyStrategyId?: string; /** * @remarks * The observable resource configuration. */ observeResourceConfig?: ObserveResourceConfig; /** * @remarks * **[Deprecated]** Specifies whether the rule applies to all resources of the resource type (read-only, derived). For new integrations, use observeResourceConfig.relationType to check whether the value is ALL for equivalent semantics. * * @example * true * * @deprecated */ observeResourceGlobalScope?: boolean; /** * @remarks * The observable resource ID list (read-only, derived). */ observeResourceList?: string[]; /** * @remarks * **[Deprecated]** The observable resource type (read-only, derived). For new integrations, use observeResourceConfig.entityType instead. * * @example * default * * @deprecated */ observeResourceType?: string; /** * @remarks * The partition key (read-only, maintained by the system for rule routing and sharding). * * @example * 示例值 */ partitionKey?: string; /** * @remarks * The query configuration aggregate (PROMETHEUS_SINGLE_QUERY / UMODEL_METRICSET_QUERY / APM_MULTI_QUERY). */ queryConfig?: QueryConfigUnified; /** * @remarks * The RCA (root cause analysis) configuration. */ rcaConfig?: AlertRuleRcaConfig; /** * @remarks * The region ID (aligned with V1 AlertRule.regionId; priority: request body regionId > gateway callerRegionId). * * @example * example-id-001 */ regionId?: string; /** * @remarks * The scheduling configuration aggregate (currently only FIXED is supported). */ scheduleConfig?: ScheduleConfigUnified; /** * @remarks * The severity levels covered by this rule, comma-separated (read-only, derived; consistent with the filter.severityLevels query parameter format). * * @example * 1 */ severityLevels?: string; /** * @remarks * The alert status (read-only). * * @example * Alarm */ status?: string; /** * @remarks * The update time (read-only), in ISO 8601 format. * * @example * 1764556086388 */ updatedAt?: string; /** * @remarks * The rule UUID (system-generated, read-only). * * @example * xxxxx-xxxx-xxxx */ uuid?: string; /** * @remarks * The workspace. * * @example * workspace-test */ workspace?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); }