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>
This commit is contained in:
2026-01-22 21:04:22 +08:00
parent a86903fcdc
commit b135987fe8
3410 changed files with 494007 additions and 11 deletions

View File

@@ -0,0 +1,318 @@
import * as $dara from '@darabonba/typescript';
export declare class PutResourceMetricRulesRequestRulesEscalationsCritical extends $dara.Model {
comparisonOperator?: string;
n?: number;
preCondition?: string;
statistics?: string;
threshold?: string;
times?: number;
static names(): {
[key: string]: string;
};
static types(): {
[key: string]: any;
};
validate(): void;
constructor(map?: {
[key: string]: any;
});
}
export declare class PutResourceMetricRulesRequestRulesEscalationsInfo extends $dara.Model {
comparisonOperator?: string;
n?: number;
preCondition?: string;
statistics?: string;
threshold?: string;
times?: number;
static names(): {
[key: string]: string;
};
static types(): {
[key: string]: any;
};
validate(): void;
constructor(map?: {
[key: string]: any;
});
}
export declare class PutResourceMetricRulesRequestRulesEscalationsWarn extends $dara.Model {
comparisonOperator?: string;
n?: number;
preCondition?: string;
statistics?: string;
threshold?: string;
times?: number;
static names(): {
[key: string]: string;
};
static types(): {
[key: string]: any;
};
validate(): void;
constructor(map?: {
[key: string]: any;
});
}
export declare class PutResourceMetricRulesRequestRulesEscalations extends $dara.Model {
critical?: PutResourceMetricRulesRequestRulesEscalationsCritical;
info?: PutResourceMetricRulesRequestRulesEscalationsInfo;
warn?: PutResourceMetricRulesRequestRulesEscalationsWarn;
static names(): {
[key: string]: string;
};
static types(): {
[key: string]: any;
};
validate(): void;
constructor(map?: {
[key: string]: any;
});
}
export declare class PutResourceMetricRulesRequestRulesLabels extends $dara.Model {
/**
* @remarks
* The tag key.
*
* @example
* tagKey1
*/
key?: string;
/**
* @remarks
* The tag value.
*
* > You can use a template parameter to specify a tag value. CloudMonitor replaces the value of the template parameter with an actual tag value.
*
* @example
* ECS
*/
value?: string;
static names(): {
[key: string]: string;
};
static types(): {
[key: string]: any;
};
validate(): void;
constructor(map?: {
[key: string]: any;
});
}
export declare class PutResourceMetricRulesRequestRules extends $dara.Model {
escalations?: PutResourceMetricRulesRequestRulesEscalations;
/**
* @remarks
* The alert contact groups. The alert notifications are sent to the alert contacts in the alert contact group.
*
* Valid values of N: 1 to 500.
*
* > An alert contact group can contain one or more alert contacts. For information about how to create alert contacts and alert contact groups, see [PutContact](https://help.aliyun.com/document_detail/114923.html) and [PutContactGroup](https://help.aliyun.com/document_detail/114929.html).
*
* This parameter is required.
*
* @example
* ECS_Group
*/
contactGroups?: string;
/**
* @remarks
* The time period during which the alert rule is effective.
*
* Valid values of N: 1 to 500.
*
* @example
* 00:00-23:59
*/
effectiveInterval?: string;
/**
* @remarks
* The subject of the alert notification email.
*
* Valid values of N: 1 to 500.
*/
emailSubject?: string;
/**
* @remarks
* The interval at which alerts are triggered based on the alert rule.
*
* Unit: seconds.
*
* Valid values of N: 1 to 500.
*
* > For information about how to query the statistical period of a metric, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html).
*
* @example
* 60
*/
interval?: string;
/**
* @remarks
* If the metric meets the specified condition in the alert rule and CloudMonitor sends an alert notification, the tag is also written to the metric and displayed in the alert notification.
*/
labels?: PutResourceMetricRulesRequestRulesLabels[];
/**
* @remarks
* The metric name.
*
* Valid values of N: 1 to 500.
*
* For information about how to query the name of a metric, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html).
*
* @example
* cpu_total
*/
metricName?: string;
/**
* @remarks
* The namespace of the cloud service.
*
* Valid values of N: 1 to 500.
*
* For information about how to query the namespace of a cloud service, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html).
*
* This parameter is required.
*
* @example
* acs_ecs_dashboard
*/
namespace?: string;
/**
* @remarks
* The method that is used to handle alerts when no monitoring data is found. Valid values:
*
* * KEEP_LAST_STATE (default): No operation is performed.
* * INSUFFICIENT_DATA: An alert whose content is "Insufficient data" is triggered.
* * OK: The status is considered normal.
*
* Valid values of N: 1 to 500.
*
* @example
* KEEP_LAST_STATE
*/
noDataPolicy?: string;
/**
* @remarks
* The time period during which the alert rule is ineffective.
*
* Valid values of N: 1 to 500.
*
* @example
* 00:00-06:00
*/
noEffectiveInterval?: string;
/**
* @remarks
* The statistical period of the metric.
*
* Unit: seconds. The default value is the interval at which the monitoring data of the metric is collected.
*
* Valid values of N: 1 to 500.
*
* > For information about how to query the statistical period of a metric, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html).
*
* @example
* 60
*/
period?: string;
/**
* @remarks
* The information about the resource. Example: `[{"instanceId":"i-uf6j91r34rnwawoo****"}]` or `[{"userId":"100931896542****"}]`.
*
* Valid values of N: 1 to 500.
*
* For more information about the supported dimensions that are used to query resources, see [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html).
*
* This parameter is required.
*
* @example
* [{"instanceId":"i-uf6j91r34rnwawoo****"}]
*/
resources?: string;
/**
* @remarks
* The ID of the alert rule.
*
* Valid values of N: 1 to 500.
*
* You can specify a new ID or the ID of an existing alert rule. For information about how to query the ID of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html).
*
* > If you specify a new ID, a threshold-triggered alert rule is created.
*
* This parameter is required.
*
* @example
* a151cd6023eacee2f0978e03863cc1697c89508****
*/
ruleId?: string;
/**
* @remarks
* The name of the alert rule.
*
* Valid values of N: 1 to 500.
*
* You can specify a new name or the name of an existing alert rule. For information about how to query the name of an alert rule, see [DescribeMetricRuleList](https://help.aliyun.com/document_detail/114941.html).
*
* > If you specify a new name, a threshold-triggered alert rule is created.
*
* This parameter is required.
*
* @example
* test123
*/
ruleName?: string;
/**
* @remarks
* The mute period during which new alert notifications are not sent even if the trigger conditions are met.
*
* Unit: seconds. Default value: 86400.
*
* Valid values of N: 1 to 500.
*
* > If an alert is not cleared after the mute period ends, CloudMonitor resends an alert notification.
*
* @example
* 86400
*/
silenceTime?: number;
/**
* @remarks
* The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
*
* Valid values of N: 1 to 500.
*
* @example
* https://alert.aliyun.com.com:8080/callback
*/
webhook?: string;
static names(): {
[key: string]: string;
};
static types(): {
[key: string]: any;
};
validate(): void;
constructor(map?: {
[key: string]: any;
});
}
export declare class PutResourceMetricRulesRequest extends $dara.Model {
/**
* @remarks
* The threshold-triggered alert rules.
*
* Valid values of N: 1 to 500.
*
* This parameter is required.
*/
rules?: PutResourceMetricRulesRequestRules[];
static names(): {
[key: string]: string;
};
static types(): {
[key: string]: any;
};
validate(): void;
constructor(map?: {
[key: string]: any;
});
}