Files
vue-driven-cloud-storage/backend/node_modules/@alicloud/cms20190101/dist/models/PutResourceMetricRuleShrinkRequest.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

226 lines
7.4 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.PutResourceMetricRuleShrinkRequest = exports.PutResourceMetricRuleShrinkRequestLabels = exports.PutResourceMetricRuleShrinkRequestEscalations = exports.PutResourceMetricRuleShrinkRequestEscalationsWarn = exports.PutResourceMetricRuleShrinkRequestEscalationsInfo = exports.PutResourceMetricRuleShrinkRequestEscalationsCritical = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class PutResourceMetricRuleShrinkRequestEscalationsCritical 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.PutResourceMetricRuleShrinkRequestEscalationsCritical = PutResourceMetricRuleShrinkRequestEscalationsCritical;
class PutResourceMetricRuleShrinkRequestEscalationsInfo 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.PutResourceMetricRuleShrinkRequestEscalationsInfo = PutResourceMetricRuleShrinkRequestEscalationsInfo;
class PutResourceMetricRuleShrinkRequestEscalationsWarn 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.PutResourceMetricRuleShrinkRequestEscalationsWarn = PutResourceMetricRuleShrinkRequestEscalationsWarn;
class PutResourceMetricRuleShrinkRequestEscalations extends $dara.Model {
static names() {
return {
critical: 'Critical',
info: 'Info',
warn: 'Warn',
};
}
static types() {
return {
critical: PutResourceMetricRuleShrinkRequestEscalationsCritical,
info: PutResourceMetricRuleShrinkRequestEscalationsInfo,
warn: PutResourceMetricRuleShrinkRequestEscalationsWarn,
};
}
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.PutResourceMetricRuleShrinkRequestEscalations = PutResourceMetricRuleShrinkRequestEscalations;
class PutResourceMetricRuleShrinkRequestLabels 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.PutResourceMetricRuleShrinkRequestLabels = PutResourceMetricRuleShrinkRequestLabels;
class PutResourceMetricRuleShrinkRequest extends $dara.Model {
static names() {
return {
escalations: 'Escalations',
compositeExpressionShrink: 'CompositeExpression',
contactGroups: 'ContactGroups',
effectiveInterval: 'EffectiveInterval',
emailSubject: 'EmailSubject',
interval: 'Interval',
labels: 'Labels',
metricName: 'MetricName',
namespace: 'Namespace',
noDataPolicy: 'NoDataPolicy',
noEffectiveInterval: 'NoEffectiveInterval',
period: 'Period',
prometheusShrink: 'Prometheus',
resources: 'Resources',
ruleId: 'RuleId',
ruleName: 'RuleName',
silenceTime: 'SilenceTime',
webhook: 'Webhook',
};
}
static types() {
return {
escalations: PutResourceMetricRuleShrinkRequestEscalations,
compositeExpressionShrink: 'string',
contactGroups: 'string',
effectiveInterval: 'string',
emailSubject: 'string',
interval: 'string',
labels: { 'type': 'array', 'itemType': PutResourceMetricRuleShrinkRequestLabels },
metricName: 'string',
namespace: 'string',
noDataPolicy: 'string',
noEffectiveInterval: 'string',
period: 'string',
prometheusShrink: 'string',
resources: 'string',
ruleId: 'string',
ruleName: 'string',
silenceTime: 'number',
webhook: 'string',
};
}
validate() {
if (this.escalations && typeof this.escalations.validate === 'function') {
this.escalations.validate();
}
if (Array.isArray(this.labels)) {
$dara.Model.validateArray(this.labels);
}
super.validate();
}
constructor(map) {
super(map);
}
}
exports.PutResourceMetricRuleShrinkRequest = PutResourceMetricRuleShrinkRequest;
//# sourceMappingURL=PutResourceMetricRuleShrinkRequest.js.map