"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.DescribeMetricRuleTemplateAttributeResponseBody = exports.DescribeMetricRuleTemplateAttributeResponseBodyResource = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo = exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical = void 0; // This file is auto-generated, don't edit it const $dara = __importStar(require("@darabonba/typescript")); class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical extends $dara.Model { static names() { return { comparisonOperator: 'ComparisonOperator', statistics: 'Statistics', threshold: 'Threshold', times: 'Times', }; } static types() { return { comparisonOperator: 'string', statistics: 'string', threshold: 'string', times: 'number', }; } validate() { super.validate(); } constructor(map) { super(map); } } exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical; class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo extends $dara.Model { static names() { return { comparisonOperator: 'ComparisonOperator', statistics: 'Statistics', threshold: 'Threshold', times: 'Times', }; } static types() { return { comparisonOperator: 'string', statistics: 'string', threshold: 'string', times: 'number', }; } validate() { super.validate(); } constructor(map) { super(map); } } exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo; class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn extends $dara.Model { static names() { return { comparisonOperator: 'ComparisonOperator', statistics: 'Statistics', threshold: 'Threshold', times: 'Times', }; } static types() { return { comparisonOperator: 'string', statistics: 'string', threshold: 'string', times: 'number', }; } validate() { super.validate(); } constructor(map) { super(map); } } exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn; class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations extends $dara.Model { static names() { return { critical: 'Critical', info: 'Info', warn: 'Warn', }; } static types() { return { critical: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsCritical, info: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsInfo, warn: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalationsWarn, }; } validate() { if (this.critical && typeof this.critical.validate === 'function') { this.critical.validate(); } if (this.info && typeof this.info.validate === 'function') { this.info.validate(); } if (this.warn && typeof this.warn.validate === 'function') { this.warn.validate(); } super.validate(); } constructor(map) { super(map); } } exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations; class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels extends $dara.Model { static names() { return { key: 'Key', value: 'Value', }; } static types() { return { key: 'string', value: 'string', }; } validate() { super.validate(); } constructor(map) { super(map); } } exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels; class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels extends $dara.Model { static names() { return { labels: 'Labels', }; } static types() { return { labels: { 'type': 'array', 'itemType': DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabelsLabels }, }; } validate() { if (Array.isArray(this.labels)) { $dara.Model.validateArray(this.labels); } super.validate(); } constructor(map) { super(map); } } exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels; class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate extends $dara.Model { static names() { return { category: 'Category', escalations: 'Escalations', labels: 'Labels', metricName: 'MetricName', namespace: 'Namespace', noDataPolicy: 'NoDataPolicy', ruleName: 'RuleName', selector: 'Selector', silenceTime: 'SilenceTime', webhook: 'Webhook', }; } static types() { return { category: 'string', escalations: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateEscalations, labels: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplateLabels, metricName: 'string', namespace: 'string', noDataPolicy: 'string', ruleName: 'string', selector: 'string', silenceTime: 'number', webhook: 'string', }; } validate() { if (this.escalations && typeof this.escalations.validate === 'function') { this.escalations.validate(); } if (this.labels && typeof this.labels.validate === 'function') { this.labels.validate(); } super.validate(); } constructor(map) { super(map); } } exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate; class DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates extends $dara.Model { static names() { return { alertTemplate: 'AlertTemplate', }; } static types() { return { alertTemplate: { 'type': 'array', 'itemType': DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplatesAlertTemplate }, }; } validate() { if (Array.isArray(this.alertTemplate)) { $dara.Model.validateArray(this.alertTemplate); } super.validate(); } constructor(map) { super(map); } } exports.DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates = DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates; class DescribeMetricRuleTemplateAttributeResponseBodyResource extends $dara.Model { static names() { return { alertTemplates: 'AlertTemplates', description: 'Description', name: 'Name', restVersion: 'RestVersion', templateId: 'TemplateId', }; } static types() { return { alertTemplates: DescribeMetricRuleTemplateAttributeResponseBodyResourceAlertTemplates, description: 'string', name: 'string', restVersion: 'string', templateId: 'string', }; } validate() { if (this.alertTemplates && typeof this.alertTemplates.validate === 'function') { this.alertTemplates.validate(); } super.validate(); } constructor(map) { super(map); } } exports.DescribeMetricRuleTemplateAttributeResponseBodyResource = DescribeMetricRuleTemplateAttributeResponseBodyResource; class DescribeMetricRuleTemplateAttributeResponseBody extends $dara.Model { static names() { return { code: 'Code', message: 'Message', requestId: 'RequestId', resource: 'Resource', success: 'Success', }; } static types() { return { code: 'number', message: 'string', requestId: 'string', resource: DescribeMetricRuleTemplateAttributeResponseBodyResource, success: 'boolean', }; } validate() { if (this.resource && typeof this.resource.validate === 'function') { this.resource.validate(); } super.validate(); } constructor(map) { super(map); } } exports.DescribeMetricRuleTemplateAttributeResponseBody = DescribeMetricRuleTemplateAttributeResponseBody; //# sourceMappingURL=DescribeMetricRuleTemplateAttributeResponseBody.js.map