功能新增: - 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>
209 lines
5.9 KiB
TypeScript
209 lines
5.9 KiB
TypeScript
import * as $dara from '@darabonba/typescript';
|
|
export declare class CreateMetricRuleTemplateRequestAlertTemplatesEscalationsCritical extends $dara.Model {
|
|
comparisonOperator?: string;
|
|
n?: number;
|
|
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 CreateMetricRuleTemplateRequestAlertTemplatesEscalationsInfo extends $dara.Model {
|
|
comparisonOperator?: string;
|
|
n?: number;
|
|
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 CreateMetricRuleTemplateRequestAlertTemplatesEscalationsWarn extends $dara.Model {
|
|
comparisonOperator?: string;
|
|
n?: number;
|
|
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 CreateMetricRuleTemplateRequestAlertTemplatesEscalations extends $dara.Model {
|
|
critical?: CreateMetricRuleTemplateRequestAlertTemplatesEscalationsCritical;
|
|
info?: CreateMetricRuleTemplateRequestAlertTemplatesEscalationsInfo;
|
|
warn?: CreateMetricRuleTemplateRequestAlertTemplatesEscalationsWarn;
|
|
static names(): {
|
|
[key: string]: string;
|
|
};
|
|
static types(): {
|
|
[key: string]: any;
|
|
};
|
|
validate(): void;
|
|
constructor(map?: {
|
|
[key: string]: any;
|
|
});
|
|
}
|
|
export declare class CreateMetricRuleTemplateRequestAlertTemplates extends $dara.Model {
|
|
escalations?: CreateMetricRuleTemplateRequestAlertTemplatesEscalations;
|
|
/**
|
|
* @remarks
|
|
* The abbreviation of the cloud service name.
|
|
*
|
|
* Valid values of N: 1 to 200.
|
|
*
|
|
* For more information about how to obtain the abbreviation of a cloud service name, see `metricCategory` in the response parameter `Labels` of the [DescribeProjectMeta](https://help.aliyun.com/document_detail/114916.html) operation.
|
|
*
|
|
* This parameter is required.
|
|
*
|
|
* @example
|
|
* ecs
|
|
*/
|
|
category?: string;
|
|
/**
|
|
* @remarks
|
|
* The metric name.
|
|
*
|
|
* Valid values of N: 1 to 200.
|
|
*
|
|
* For information about how to obtain the name of a metric, see [DescribeMetricMetaList](https://help.aliyun.com/document_detail/98846.html) or [Metrics](https://help.aliyun.com/document_detail/163515.html).
|
|
*
|
|
* This parameter is required.
|
|
*
|
|
* @example
|
|
* cpu_total
|
|
*/
|
|
metricName?: string;
|
|
/**
|
|
* @remarks
|
|
* The namespace of the cloud service.
|
|
*
|
|
* Valid values of N: 1 to 200.
|
|
*
|
|
* For information about how to obtain the namespace of a cloud service, see [DescribeMetricMetaList](https://help.aliyun.com/document_detail/98846.html) or [Appendix 1: Metrics](https://help.aliyun.com/document_detail/163515.html).
|
|
*
|
|
* This parameter is required.
|
|
*
|
|
* @example
|
|
* acs_ecs_dashboard
|
|
*/
|
|
namespace?: string;
|
|
/**
|
|
* @remarks
|
|
* The aggregation period of monitoring data. Unit: seconds.
|
|
*
|
|
* The default value is the minimum aggregation period. Generally, you do not need to specify the minimum aggregation period.
|
|
*
|
|
* Valid values of N: 1 to 200.
|
|
*
|
|
* @example
|
|
* 60
|
|
*/
|
|
period?: number;
|
|
/**
|
|
* @remarks
|
|
* The name of the alert rule.
|
|
*
|
|
* Valid values of N: 1 to 200.
|
|
*
|
|
* This parameter is required.
|
|
*
|
|
* @example
|
|
* ECS_Rule1
|
|
*/
|
|
ruleName?: string;
|
|
/**
|
|
* @remarks
|
|
* The dimension of the alert. It is an extended field.
|
|
*
|
|
* Valid values of N: 1 to 200.
|
|
*
|
|
* For example, an alert template is applied to an application group, this parameter is set to `{"disk":"/"}`, and the MetricName parameter is set to `DiskUtilization`. In this case, the generated alert rule is applied to the root disk partition (`"/"`) of all instances in the application group to which the alert template is applied.
|
|
*
|
|
* > For more information about the values of extended fields, see [DescribeMetricRuleTemplateAttribute](https://help.aliyun.com/document_detail/114979.html).
|
|
*
|
|
* @example
|
|
* {"disk":"/"}
|
|
*/
|
|
selector?: string;
|
|
/**
|
|
* @remarks
|
|
* The callback URL.
|
|
*
|
|
* Valid values of N: 1 to 200.
|
|
*
|
|
* The callback URL must be accessible over the Internet. CloudMonitor pushes an alert notification to the specified callback URL by sending an HTTP POST request. Only the HTTP protocol is supported.
|
|
*
|
|
* @example
|
|
* http://ww.aliyun.com
|
|
*/
|
|
webhook?: string;
|
|
static names(): {
|
|
[key: string]: string;
|
|
};
|
|
static types(): {
|
|
[key: string]: any;
|
|
};
|
|
validate(): void;
|
|
constructor(map?: {
|
|
[key: string]: any;
|
|
});
|
|
}
|
|
export declare class CreateMetricRuleTemplateRequest extends $dara.Model {
|
|
/**
|
|
* @remarks
|
|
* The details of the alert template.
|
|
*/
|
|
alertTemplates?: CreateMetricRuleTemplateRequestAlertTemplates[];
|
|
/**
|
|
* @remarks
|
|
* The description of the alert template.
|
|
*
|
|
* @example
|
|
* ECS_Template1
|
|
*/
|
|
description?: string;
|
|
/**
|
|
* @remarks
|
|
* The name of the alert template.
|
|
*
|
|
* This parameter is required.
|
|
*
|
|
* @example
|
|
* Template1
|
|
*/
|
|
name?: string;
|
|
regionId?: string;
|
|
static names(): {
|
|
[key: string]: string;
|
|
};
|
|
static types(): {
|
|
[key: string]: any;
|
|
};
|
|
validate(): void;
|
|
constructor(map?: {
|
|
[key: string]: any;
|
|
});
|
|
}
|