Files
vue-driven-cloud-storage/backend/node_modules/@alicloud/cms20190101/dist/models/DescribeMetricRuleTemplateAttributeResponseBody.js
237899745 b135987fe8 feat: 添加多项功能和修复
功能新增:
- OSS 存储使用情况显示(文件页面)
- OSS 当日流量统计(阿里云云监控API)
- 分享页面路由修复(/s/xxx 格式支持)

Bug修复:
- 修复分享页面资源路径(相对路径改绝对路径)
- 修复分享码获取逻辑(支持路径格式)
- 修复OSS配额undefined显示问题
- 修复登录流程OSS配置检查
- 修复文件数为null时的显示问题

依赖更新:
- 添加 @alicloud/cms20190101 云监控SDK
- 添加 @alicloud/openapi-client

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 21:04:22 +08:00

314 lines
12 KiB
JavaScript

"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