功能新增: - 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>
377 lines
12 KiB
JavaScript
377 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.NotificationStrategy = exports.NotificationStrategyRouteSetting = exports.NotificationStrategyRouteSettingRoutes = exports.NotificationStrategyRouteSettingRoutesConditions = exports.NotificationStrategyPushingSetting = exports.NotificationStrategyGroupingSetting = exports.NotificationStrategyGroupingSettingGroupingItems = exports.NotificationStrategyFilterSetting = exports.NotificationStrategyFilterSettingWhiteList = exports.NotificationStrategyFilterSettingBlackList = exports.NotificationStrategyEscalationSetting = exports.NotificationStrategyEscalationSettingCustomChannels = void 0;
|
|
// This file is auto-generated, don't edit it
|
|
const $dara = __importStar(require("@darabonba/typescript"));
|
|
class NotificationStrategyEscalationSettingCustomChannels extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
channelType: 'ChannelType',
|
|
severities: 'Severities',
|
|
templateUuid: 'TemplateUuid',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
channelType: 'string',
|
|
severities: { 'type': 'array', 'itemType': 'string' },
|
|
templateUuid: 'string',
|
|
};
|
|
}
|
|
validate() {
|
|
if (Array.isArray(this.severities)) {
|
|
$dara.Model.validateArray(this.severities);
|
|
}
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.NotificationStrategyEscalationSettingCustomChannels = NotificationStrategyEscalationSettingCustomChannels;
|
|
class NotificationStrategyEscalationSetting extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
autoResolveMin: 'AutoResolveMin',
|
|
customChannels: 'CustomChannels',
|
|
escalationLevel: 'EscalationLevel',
|
|
escalationUuid: 'EscalationUuid',
|
|
range: 'Range',
|
|
retriggerMin: 'RetriggerMin',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
autoResolveMin: 'number',
|
|
customChannels: { 'type': 'array', 'itemType': NotificationStrategyEscalationSettingCustomChannels },
|
|
escalationLevel: 'string',
|
|
escalationUuid: 'string',
|
|
range: 'string',
|
|
retriggerMin: 'number',
|
|
};
|
|
}
|
|
validate() {
|
|
if (Array.isArray(this.customChannels)) {
|
|
$dara.Model.validateArray(this.customChannels);
|
|
}
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.NotificationStrategyEscalationSetting = NotificationStrategyEscalationSetting;
|
|
class NotificationStrategyFilterSettingBlackList extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
field: 'Field',
|
|
op: 'Op',
|
|
value: 'Value',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
field: 'string',
|
|
op: 'string',
|
|
value: 'string',
|
|
};
|
|
}
|
|
validate() {
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.NotificationStrategyFilterSettingBlackList = NotificationStrategyFilterSettingBlackList;
|
|
class NotificationStrategyFilterSettingWhiteList extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
field: 'Field',
|
|
op: 'Op',
|
|
value: 'Value',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
field: 'string',
|
|
op: 'string',
|
|
value: 'string',
|
|
};
|
|
}
|
|
validate() {
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.NotificationStrategyFilterSettingWhiteList = NotificationStrategyFilterSettingWhiteList;
|
|
class NotificationStrategyFilterSetting extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
blackList: 'BlackList',
|
|
whiteList: 'WhiteList',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
blackList: { 'type': 'array', 'itemType': { 'type': 'array', 'itemType': NotificationStrategyFilterSettingBlackList } },
|
|
whiteList: { 'type': 'array', 'itemType': { 'type': 'array', 'itemType': NotificationStrategyFilterSettingWhiteList } },
|
|
};
|
|
}
|
|
validate() {
|
|
if (Array.isArray(this.blackList)) {
|
|
$dara.Model.validateArray(this.blackList);
|
|
}
|
|
if (Array.isArray(this.whiteList)) {
|
|
$dara.Model.validateArray(this.whiteList);
|
|
}
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.NotificationStrategyFilterSetting = NotificationStrategyFilterSetting;
|
|
class NotificationStrategyGroupingSettingGroupingItems extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
keys: 'Keys',
|
|
type: 'Type',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
keys: { 'type': 'array', 'itemType': 'string' },
|
|
type: 'string',
|
|
};
|
|
}
|
|
validate() {
|
|
if (Array.isArray(this.keys)) {
|
|
$dara.Model.validateArray(this.keys);
|
|
}
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.NotificationStrategyGroupingSettingGroupingItems = NotificationStrategyGroupingSettingGroupingItems;
|
|
class NotificationStrategyGroupingSetting extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
enableRawAlertDispatching: 'EnableRawAlertDispatching',
|
|
groupingItems: 'GroupingItems',
|
|
periodMin: 'PeriodMin',
|
|
silenceSec: 'SilenceSec',
|
|
times: 'Times',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
enableRawAlertDispatching: 'boolean',
|
|
groupingItems: { 'type': 'array', 'itemType': NotificationStrategyGroupingSettingGroupingItems },
|
|
periodMin: 'number',
|
|
silenceSec: 'number',
|
|
times: 'number',
|
|
};
|
|
}
|
|
validate() {
|
|
if (Array.isArray(this.groupingItems)) {
|
|
$dara.Model.validateArray(this.groupingItems);
|
|
}
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.NotificationStrategyGroupingSetting = NotificationStrategyGroupingSetting;
|
|
class NotificationStrategyPushingSetting extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
pushingDataFormat: 'PushingDataFormat',
|
|
range: 'Range',
|
|
targetUuids: 'TargetUuids',
|
|
templateUuid: 'TemplateUuid',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
pushingDataFormat: 'string',
|
|
range: 'string',
|
|
targetUuids: { 'type': 'array', 'itemType': 'string' },
|
|
templateUuid: 'string',
|
|
};
|
|
}
|
|
validate() {
|
|
if (Array.isArray(this.targetUuids)) {
|
|
$dara.Model.validateArray(this.targetUuids);
|
|
}
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.NotificationStrategyPushingSetting = NotificationStrategyPushingSetting;
|
|
class NotificationStrategyRouteSettingRoutesConditions extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
field: 'Field',
|
|
op: 'Op',
|
|
value: 'Value',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
field: 'string',
|
|
op: 'string',
|
|
value: 'string',
|
|
};
|
|
}
|
|
validate() {
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.NotificationStrategyRouteSettingRoutesConditions = NotificationStrategyRouteSettingRoutesConditions;
|
|
class NotificationStrategyRouteSettingRoutes extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
conditions: 'Conditions',
|
|
escalationUuid: 'EscalationUuid',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
conditions: { 'type': 'array', 'itemType': NotificationStrategyRouteSettingRoutesConditions },
|
|
escalationUuid: 'string',
|
|
};
|
|
}
|
|
validate() {
|
|
if (Array.isArray(this.conditions)) {
|
|
$dara.Model.validateArray(this.conditions);
|
|
}
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.NotificationStrategyRouteSettingRoutes = NotificationStrategyRouteSettingRoutes;
|
|
class NotificationStrategyRouteSetting extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
routes: 'Routes',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
routes: { 'type': 'array', 'itemType': NotificationStrategyRouteSettingRoutes },
|
|
};
|
|
}
|
|
validate() {
|
|
if (Array.isArray(this.routes)) {
|
|
$dara.Model.validateArray(this.routes);
|
|
}
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.NotificationStrategyRouteSetting = NotificationStrategyRouteSetting;
|
|
class NotificationStrategy extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
createTime: 'CreateTime',
|
|
description: 'Description',
|
|
escalationSetting: 'EscalationSetting',
|
|
filterSetting: 'FilterSetting',
|
|
groupingSetting: 'GroupingSetting',
|
|
name: 'Name',
|
|
product: 'Product',
|
|
pushingSetting: 'PushingSetting',
|
|
routeSetting: 'RouteSetting',
|
|
updateTime: 'UpdateTime',
|
|
userId: 'UserId',
|
|
uuid: 'Uuid',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
createTime: 'string',
|
|
description: 'string',
|
|
escalationSetting: NotificationStrategyEscalationSetting,
|
|
filterSetting: NotificationStrategyFilterSetting,
|
|
groupingSetting: NotificationStrategyGroupingSetting,
|
|
name: 'string',
|
|
product: 'string',
|
|
pushingSetting: NotificationStrategyPushingSetting,
|
|
routeSetting: NotificationStrategyRouteSetting,
|
|
updateTime: 'string',
|
|
userId: 'string',
|
|
uuid: 'string',
|
|
};
|
|
}
|
|
validate() {
|
|
if (this.escalationSetting && typeof this.escalationSetting.validate === 'function') {
|
|
this.escalationSetting.validate();
|
|
}
|
|
if (this.filterSetting && typeof this.filterSetting.validate === 'function') {
|
|
this.filterSetting.validate();
|
|
}
|
|
if (this.groupingSetting && typeof this.groupingSetting.validate === 'function') {
|
|
this.groupingSetting.validate();
|
|
}
|
|
if (this.pushingSetting && typeof this.pushingSetting.validate === 'function') {
|
|
this.pushingSetting.validate();
|
|
}
|
|
if (this.routeSetting && typeof this.routeSetting.validate === 'function') {
|
|
this.routeSetting.validate();
|
|
}
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.NotificationStrategy = NotificationStrategy;
|
|
//# sourceMappingURL=NotificationStrategy.js.map
|