功能新增: - 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>
338 lines
11 KiB
JavaScript
338 lines
11 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.PutResourceMetricRuleRequest = exports.PutResourceMetricRuleRequestPrometheus = exports.PutResourceMetricRuleRequestPrometheusAnnotations = exports.PutResourceMetricRuleRequestLabels = exports.PutResourceMetricRuleRequestCompositeExpression = exports.PutResourceMetricRuleRequestCompositeExpressionExpressionList = exports.PutResourceMetricRuleRequestEscalations = exports.PutResourceMetricRuleRequestEscalationsWarn = exports.PutResourceMetricRuleRequestEscalationsInfo = exports.PutResourceMetricRuleRequestEscalationsCritical = void 0;
|
|
// This file is auto-generated, don't edit it
|
|
const $dara = __importStar(require("@darabonba/typescript"));
|
|
class PutResourceMetricRuleRequestEscalationsCritical 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.PutResourceMetricRuleRequestEscalationsCritical = PutResourceMetricRuleRequestEscalationsCritical;
|
|
class PutResourceMetricRuleRequestEscalationsInfo 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.PutResourceMetricRuleRequestEscalationsInfo = PutResourceMetricRuleRequestEscalationsInfo;
|
|
class PutResourceMetricRuleRequestEscalationsWarn 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.PutResourceMetricRuleRequestEscalationsWarn = PutResourceMetricRuleRequestEscalationsWarn;
|
|
class PutResourceMetricRuleRequestEscalations extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
critical: 'Critical',
|
|
info: 'Info',
|
|
warn: 'Warn',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
critical: PutResourceMetricRuleRequestEscalationsCritical,
|
|
info: PutResourceMetricRuleRequestEscalationsInfo,
|
|
warn: PutResourceMetricRuleRequestEscalationsWarn,
|
|
};
|
|
}
|
|
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.PutResourceMetricRuleRequestEscalations = PutResourceMetricRuleRequestEscalations;
|
|
class PutResourceMetricRuleRequestCompositeExpressionExpressionList extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
comparisonOperator: 'ComparisonOperator',
|
|
metricName: 'MetricName',
|
|
period: 'Period',
|
|
statistics: 'Statistics',
|
|
threshold: 'Threshold',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
comparisonOperator: 'string',
|
|
metricName: 'string',
|
|
period: 'number',
|
|
statistics: 'string',
|
|
threshold: 'string',
|
|
};
|
|
}
|
|
validate() {
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.PutResourceMetricRuleRequestCompositeExpressionExpressionList = PutResourceMetricRuleRequestCompositeExpressionExpressionList;
|
|
class PutResourceMetricRuleRequestCompositeExpression extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
expressionList: 'ExpressionList',
|
|
expressionListJoin: 'ExpressionListJoin',
|
|
expressionRaw: 'ExpressionRaw',
|
|
level: 'Level',
|
|
times: 'Times',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
expressionList: { 'type': 'array', 'itemType': PutResourceMetricRuleRequestCompositeExpressionExpressionList },
|
|
expressionListJoin: 'string',
|
|
expressionRaw: 'string',
|
|
level: 'string',
|
|
times: 'number',
|
|
};
|
|
}
|
|
validate() {
|
|
if (Array.isArray(this.expressionList)) {
|
|
$dara.Model.validateArray(this.expressionList);
|
|
}
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.PutResourceMetricRuleRequestCompositeExpression = PutResourceMetricRuleRequestCompositeExpression;
|
|
class PutResourceMetricRuleRequestLabels 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.PutResourceMetricRuleRequestLabels = PutResourceMetricRuleRequestLabels;
|
|
class PutResourceMetricRuleRequestPrometheusAnnotations 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.PutResourceMetricRuleRequestPrometheusAnnotations = PutResourceMetricRuleRequestPrometheusAnnotations;
|
|
class PutResourceMetricRuleRequestPrometheus extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
annotations: 'Annotations',
|
|
level: 'Level',
|
|
promQL: 'PromQL',
|
|
times: 'Times',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
annotations: { 'type': 'array', 'itemType': PutResourceMetricRuleRequestPrometheusAnnotations },
|
|
level: 'string',
|
|
promQL: 'string',
|
|
times: 'number',
|
|
};
|
|
}
|
|
validate() {
|
|
if (Array.isArray(this.annotations)) {
|
|
$dara.Model.validateArray(this.annotations);
|
|
}
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.PutResourceMetricRuleRequestPrometheus = PutResourceMetricRuleRequestPrometheus;
|
|
class PutResourceMetricRuleRequest extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
escalations: 'Escalations',
|
|
compositeExpression: 'CompositeExpression',
|
|
contactGroups: 'ContactGroups',
|
|
effectiveInterval: 'EffectiveInterval',
|
|
emailSubject: 'EmailSubject',
|
|
interval: 'Interval',
|
|
labels: 'Labels',
|
|
metricName: 'MetricName',
|
|
namespace: 'Namespace',
|
|
noDataPolicy: 'NoDataPolicy',
|
|
noEffectiveInterval: 'NoEffectiveInterval',
|
|
period: 'Period',
|
|
prometheus: 'Prometheus',
|
|
resources: 'Resources',
|
|
ruleId: 'RuleId',
|
|
ruleName: 'RuleName',
|
|
silenceTime: 'SilenceTime',
|
|
webhook: 'Webhook',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
escalations: PutResourceMetricRuleRequestEscalations,
|
|
compositeExpression: PutResourceMetricRuleRequestCompositeExpression,
|
|
contactGroups: 'string',
|
|
effectiveInterval: 'string',
|
|
emailSubject: 'string',
|
|
interval: 'string',
|
|
labels: { 'type': 'array', 'itemType': PutResourceMetricRuleRequestLabels },
|
|
metricName: 'string',
|
|
namespace: 'string',
|
|
noDataPolicy: 'string',
|
|
noEffectiveInterval: 'string',
|
|
period: 'string',
|
|
prometheus: PutResourceMetricRuleRequestPrometheus,
|
|
resources: 'string',
|
|
ruleId: 'string',
|
|
ruleName: 'string',
|
|
silenceTime: 'number',
|
|
webhook: 'string',
|
|
};
|
|
}
|
|
validate() {
|
|
if (this.escalations && typeof this.escalations.validate === 'function') {
|
|
this.escalations.validate();
|
|
}
|
|
if (this.compositeExpression && typeof this.compositeExpression.validate === 'function') {
|
|
this.compositeExpression.validate();
|
|
}
|
|
if (Array.isArray(this.labels)) {
|
|
$dara.Model.validateArray(this.labels);
|
|
}
|
|
if (this.prometheus && typeof this.prometheus.validate === 'function') {
|
|
this.prometheus.validate();
|
|
}
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.PutResourceMetricRuleRequest = PutResourceMetricRuleRequest;
|
|
//# sourceMappingURL=PutResourceMetricRuleRequest.js.map
|